org.apache.tuscany.sca.osgi.runtime
Class KnopflerfishRuntime

java.lang.Object
  extended by org.apache.tuscany.sca.osgi.runtime.OSGiRuntime
      extended by org.apache.tuscany.sca.osgi.runtime.KnopflerfishRuntime

public class KnopflerfishRuntime
extends OSGiRuntime

Implementation of an OSGi Runtime using Knopflerfish.


Constructor Summary
KnopflerfishRuntime()
           
 
Method Summary
 BundleContext getBundleContext()
           
static OSGiRuntime getInstance()
           
protected  void setBundleContext(BundleContext bundleContext)
           
 void shutdown()
           
protected  BundleContext startRuntime(boolean tuscanyRunningInOSGiContainer)
           
 boolean supportsBundleFragments()
           
 
Methods inherited from class org.apache.tuscany.sca.osgi.runtime.OSGiRuntime
findBundle, findBundle, findInstalledBundle, findInstalledBundle, findRuntime, getContextClassLoader, getRuntime, getRuntime, initialize, installBundle, setContextClassLoader, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KnopflerfishRuntime

public KnopflerfishRuntime()
Method Detail

getInstance

public static OSGiRuntime getInstance()
                               throws java.lang.Exception
Throws:
java.lang.Exception

startRuntime

protected BundleContext startRuntime(boolean tuscanyRunningInOSGiContainer)
                              throws java.lang.Exception
Specified by:
startRuntime in class OSGiRuntime
Throws:
java.lang.Exception

getBundleContext

public BundleContext getBundleContext()
Specified by:
getBundleContext in class OSGiRuntime

setBundleContext

protected void setBundleContext(BundleContext bundleContext)
Overrides:
setBundleContext in class OSGiRuntime

shutdown

public void shutdown()
              throws java.lang.Exception
Overrides:
shutdown in class OSGiRuntime
Throws:
java.lang.Exception

supportsBundleFragments

public boolean supportsBundleFragments()
Specified by:
supportsBundleFragments in class OSGiRuntime