|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.node.equinox.launcher.NodeLauncher
public class NodeLauncher
A launcher for SCA nodes.
Method Summary | ||
---|---|---|
|
createNode(java.lang.String compositeURI,
Contribution... contributions)
Creates a new SCA OSGi Node. |
|
|
createNode(java.lang.String compositeURI,
java.lang.String compositeContent,
Contribution... contributions)
Creates a new SCA OSGi Node. |
|
|
createNodeFromClassLoader(java.lang.String compositeURI,
java.lang.ClassLoader classLoader)
Create a SCA node based on the discovery of the contribution on the classpath for the given classloader. |
|
|
createNodeFromURL(java.lang.String configurationURL)
Creates a new SCA node from the configuration URL |
|
void |
destroy()
|
|
static void |
main(java.lang.String[] args)
|
|
static NodeLauncher |
newInstance()
Returns a new launcher instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NodeLauncher newInstance()
public <T> T createNodeFromURL(java.lang.String configurationURL) throws LauncherException
configurationURL
- the URL of the node configuration which is the ATOM feed
that contains the URI of the composite and a collection of URLs for the contributions
LauncherException
public <T> T createNode(java.lang.String compositeURI, Contribution... contributions) throws LauncherException
compositeURI
- the URI of the composite to usecontributions
- the URI of the contributions that provides the composites and related
artifacts. If the list is empty, then we will use the thread context classloader to discover
the contribution on the classpath
LauncherException
public <T> T createNode(java.lang.String compositeURI, java.lang.String compositeContent, Contribution... contributions) throws LauncherException
compositeURI
- the URI of the composite to usecompositeContent
- the XML content of the composite to usecontributions
- the URI of the contributions that provides the composites and related artifacts
LauncherException
public <T> T createNodeFromClassLoader(java.lang.String compositeURI, java.lang.ClassLoader classLoader) throws LauncherException
compositeURI
- The URI of the composite file relative to the root of the enclosing contributionclassLoader
- The ClassLoader used to load the composite file as a resource. If the value is null,
then thread context classloader will be used
LauncherException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |