Package org.eclipse.jetty.osgi.boot
Class BundleContextProvider
- java.lang.Object
 - 
- org.eclipse.jetty.util.component.AbstractLifeCycle
 - 
- org.eclipse.jetty.osgi.boot.AbstractContextProvider
 - 
- org.eclipse.jetty.osgi.boot.BundleContextProvider
 
 
 
 
- 
- All Implemented Interfaces:
 AppProvider,BundleProvider,LifeCycle
public class BundleContextProvider extends AbstractContextProvider implements BundleProvider
BundleContextProviderHandles deploying OSGi bundles that define a context xml file for configuring them.
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description classBundleContextProvider.ContextBundleTracker- 
Nested classes/interfaces inherited from class org.eclipse.jetty.osgi.boot.AbstractContextProvider
AbstractContextProvider.OSGiApp 
- 
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener 
- 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener 
 - 
 
- 
Constructor Summary
Constructors Constructor Description BundleContextProvider(ServerInstanceWrapper wrapper) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbundleAdded(org.osgi.framework.Bundle bundle)booleanbundleRemoved(org.osgi.framework.Bundle bundle)Bundle has been removed.protected voiddoStart()protected voiddoStop()- 
Methods inherited from class org.eclipse.jetty.osgi.boot.AbstractContextProvider
createContextHandler, getDeploymentManager, getServerInstanceWrapper, setDeploymentManager 
- 
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
BundleContextProvider
public BundleContextProvider(ServerInstanceWrapper wrapper)
 
 - 
 
- 
Method Detail
- 
doStart
protected void doStart() throws java.lang.Exception- Overrides:
 doStartin classAbstractLifeCycle- Throws:
 java.lang.Exception
 
- 
doStop
protected void doStop() throws java.lang.Exception- Overrides:
 doStopin classAbstractLifeCycle- Throws:
 java.lang.Exception
 
- 
bundleAdded
public boolean bundleAdded(org.osgi.framework.Bundle bundle) throws java.lang.Exception- Specified by:
 bundleAddedin interfaceBundleProvider- Throws:
 java.lang.Exception
 
- 
bundleRemoved
public boolean bundleRemoved(org.osgi.framework.Bundle bundle) throws java.lang.ExceptionBundle has been removed. If it was a context we deployed, undeploy it.- Specified by:
 bundleRemovedin interfaceBundleProvider- Parameters:
 bundle- the bundle- Returns:
 - true if this was a context we had deployed, false otherwise
 - Throws:
 java.lang.Exception
 
 - 
 
 -