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

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

public class FelixRuntime
extends OSGiRuntime

Implementation of an OSGi Runtime using Felix.


Constructor Summary
FelixRuntime()
           
 
Method Summary
 BundleContext getBundleContext()
           
static OSGiRuntime getInstance()
           
protected  void setBundleContext(BundleContext bundleContext)
           
 void shutdown()
           
 void start(BundleContext context)
           
protected  BundleContext startRuntime(boolean tuscanyRunningInOSGiContainer)
           
 void stop(BundleContext context)
           
 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

FelixRuntime

public FelixRuntime()
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

start

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

stop

public void stop(BundleContext context)
          throws java.lang.Exception
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