Package org.eclipse.jetty.osgi.boot
Class BundleWebAppProvider
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.osgi.boot.AbstractWebAppProvider
-
- org.eclipse.jetty.osgi.boot.BundleWebAppProvider
-
- All Implemented Interfaces:
AppProvider
,BundleProvider
,LifeCycle
public class BundleWebAppProvider extends AbstractWebAppProvider implements BundleProvider
BundleWebAppProviderA Jetty Provider that knows how to deploy a WebApp contained inside a Bundle.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BundleWebAppProvider.WebAppTracker
-
Nested classes/interfaces inherited from class org.eclipse.jetty.osgi.boot.AbstractWebAppProvider
AbstractWebAppProvider.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 BundleWebAppProvider(ServerInstanceWrapper wrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bundleAdded(org.osgi.framework.Bundle bundle)
A bundle has been added that could be a webappboolean
bundleRemoved(org.osgi.framework.Bundle bundle)
Bundle has been removed.protected void
doStart()
protected void
doStop()
-
Methods inherited from class org.eclipse.jetty.osgi.boot.AbstractWebAppProvider
createContextHandler, getConfigurationClasses, getDefaultsDescriptor, getDeploymentManager, getOriginId, getServerInstanceWrapper, getTldBundles, isExtract, isParentLoaderPriority, setConfigurationClasses, setDefaultsDescriptor, setDeploymentManager, setExtract, setParentLoaderPriority, setServerInstanceWrapper, setTldBundles
-
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
-
BundleWebAppProvider
public BundleWebAppProvider(ServerInstanceWrapper wrapper)
-
-
Method Detail
-
doStart
protected void doStart() throws java.lang.Exception
- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
java.lang.Exception
- See Also:
AbstractLifeCycle.doStart()
-
doStop
protected void doStop() throws java.lang.Exception
- Overrides:
doStop
in classAbstractLifeCycle
- Throws:
java.lang.Exception
- See Also:
AbstractLifeCycle.doStop()
-
bundleAdded
public boolean bundleAdded(org.osgi.framework.Bundle bundle) throws java.lang.Exception
A bundle has been added that could be a webapp- Specified by:
bundleAdded
in interfaceBundleProvider
- Parameters:
bundle
- the bundle- Throws:
java.lang.Exception
-
bundleRemoved
public boolean bundleRemoved(org.osgi.framework.Bundle bundle) throws java.lang.Exception
Bundle has been removed. If it was a webapp we deployed, undeploy it.- Specified by:
bundleRemoved
in interfaceBundleProvider
- Parameters:
bundle
- the bundle- Returns:
- true if this was a webapp we had deployed, false otherwise
- Throws:
java.lang.Exception
-
-