org.apache.tuscany.sca.node.osgi.launcher
Class LauncherBundleActivator

java.lang.Object
  extended by org.apache.tuscany.sca.node.osgi.launcher.LauncherBundleActivator

public class LauncherBundleActivator
extends java.lang.Object

Bundle activator which installs Tuscany modules and 3rd party jars into an OSGi runtime.


Constructor Summary
LauncherBundleActivator()
           
LauncherBundleActivator(java.util.List<java.net.URL> jarFiles)
           
 
Method Summary
 void bundleChanged(BundleEvent event)
           
 Bundle createAndInstallBundle(BundleContext bundleContext, java.net.URL bundleFile)
           
 BundleContext getBundleContext()
           
 void installTuscany(BundleContext bundleContext)
           
 void start(BundleContext bundleContext)
           
 void stop(BundleContext bundleContext)
           
static java.lang.String toString(Bundle b, boolean verbose)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LauncherBundleActivator

public LauncherBundleActivator()

LauncherBundleActivator

public LauncherBundleActivator(java.util.List<java.net.URL> jarFiles)
Method Detail

toString

public static java.lang.String toString(Bundle b,
                                        boolean verbose)

start

public void start(BundleContext bundleContext)
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop(BundleContext bundleContext)
          throws java.lang.Exception
Throws:
java.lang.Exception

installTuscany

public void installTuscany(BundleContext bundleContext)

createAndInstallBundle

public Bundle createAndInstallBundle(BundleContext bundleContext,
                                     java.net.URL bundleFile)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getBundleContext

public BundleContext getBundleContext()

bundleChanged

public void bundleChanged(BundleEvent event)