From 31d794be59cb2d1bf264df79f471b0c8d5f5a457 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 21 Nov 2009 07:40:26 +0000 Subject: Moving to site trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882841 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/node/equinox/launcher/NodeLauncher.html | 412 +++++++++++++++++++++ 1 file changed, 412 insertions(+) create mode 100644 site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncher.html (limited to 'site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncher.html') diff --git a/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncher.html b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncher.html new file mode 100644 index 0000000000..aca90e7150 --- /dev/null +++ b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncher.html @@ -0,0 +1,412 @@ + + + + + + +NodeLauncher + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.tuscany.sca.node.equinox.launcher +
+Class NodeLauncher

+
+java.lang.Object
+  extended by org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher
+
+
+
+
public class NodeLauncher
extends java.lang.Object
+ + +

+A launcher for SCA nodes. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ + + + + +
+<T> T
+
createNode(java.lang.String compositeURI, + Contribution... contributions) + +
+          Creates a new SCA OSGi Node.
+ + + + + +
+<T> T
+
createNode(java.lang.String compositeURI, + java.lang.String compositeContent, + Contribution... contributions) + +
+          Creates a new SCA OSGi Node.
+ + + + + +
+<T> T
+
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.
+ + + + + +
+<T> T
+
createNodeFromURL(java.lang.String configurationURL) + +
+          Creates a new SCA node from the configuration URL
+ voiddestroy() + +
+           
+static voidmain(java.lang.String[] args) + +
+           
+static NodeLaunchernewInstance() + +
+          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
+ +

+newInstance

+
+public static NodeLauncher newInstance()
+
+
Returns a new launcher instance. +

+

+ +
Returns:
a new launcher instance
+
+
+
+ +

+createNodeFromURL

+
+public <T> T createNodeFromURL(java.lang.String configurationURL)
+                    throws LauncherException
+
+
Creates a new SCA node from the configuration URL +

+

+
Parameters:
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 +
Returns:
a new SCA node. +
Throws: +
LauncherException
+
+
+
+ +

+createNode

+
+public <T> T createNode(java.lang.String compositeURI,
+                        Contribution... contributions)
+             throws LauncherException
+
+
Creates a new SCA OSGi Node. +

+

+
Parameters:
compositeURI - the URI of the composite to use
contributions - 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 +
Returns:
a new SCA node. +
Throws: +
LauncherException
+
+
+
+ +

+createNode

+
+public <T> T createNode(java.lang.String compositeURI,
+                        java.lang.String compositeContent,
+                        Contribution... contributions)
+             throws LauncherException
+
+
Creates a new SCA OSGi Node. +

+

+
Parameters:
compositeURI - the URI of the composite to use
compositeContent - the XML content of the composite to use
contributions - the URI of the contributions that provides the composites and related artifacts +
Returns:
a new SCA node. +
Throws: +
LauncherException
+
+
+
+ +

+createNodeFromClassLoader

+
+public <T> T createNodeFromClassLoader(java.lang.String compositeURI,
+                                       java.lang.ClassLoader classLoader)
+                            throws LauncherException
+
+
Create a SCA node based on the discovery of the contribution on the classpath for the + given classloader. This method should be treated a convenient shortcut with the following + assumptions: +
    +
  • This is a standalone application and there is a deployable composite file on the classpath. +
  • There is only one contribution which contains the deployable composite file physically in its packaging hierarchy. +
+

+

+
Parameters:
compositeURI - The URI of the composite file relative to the root of the enclosing contribution
classLoader - The ClassLoader used to load the composite file as a resource. If the value is null, + then thread context classloader will be used +
Returns:
A newly created SCA node +
Throws: +
LauncherException
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] args)
+                 throws java.lang.Exception
+
+
+ +
Throws: +
java.lang.Exception
+
+
+
+ +

+destroy

+
+public void destroy()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3