Package org.eclipse.jetty.osgi
Class BundleWebAppProvider
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.osgi.AbstractContextProvider
org.eclipse.jetty.osgi.BundleWebAppProvider
- All Implemented Interfaces:
AppProvider
,BundleProvider
,LifeCycle
BundleWebAppProvider
A Jetty Provider that knows how to deploy a WebApp contained inside a Bundle.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBundleWebAppProvider
(String environment, Server server, ContextFactory contextFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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()
Method to override to start the lifecycleprotected void
doStop()
Method to override to stop the lifecycleboolean
isDeployable
(org.osgi.framework.Bundle bundle) Methods inherited from class org.eclipse.jetty.osgi.AbstractContextProvider
createContextHandler, getConfigurationClasses, getDefaultsDescriptor, getDeploymentManager, getEnvironmentName, getProperties, getServer, getTldBundles, isDeployable, isExtractWars, isParentLoaderPriority, setConfigurationClasses, setConfigurationClasses, setDefaultsDescriptor, setDeploymentManager, setExtractWars, setParentLoaderPriority, setTldBundles
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, 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
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
-
Constructor Details
-
BundleWebAppProvider
-
-
Method Details
-
doStart
Description copied from class:AbstractLifeCycle
Method to override to start the lifecycle- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
AbstractLifeCycle.StopException
- If thrown, the lifecycle will immediately be stopped.Exception
- If there was a problem starting. Will cause a transition to FAILED state
-
doStop
Description copied from class:AbstractLifeCycle
Method to override to stop the lifecycle- Overrides:
doStop
in classAbstractLifeCycle
- Throws:
Exception
- If there was a problem stopping. Will cause a transition to FAILED state
-
isDeployable
public boolean isDeployable(org.osgi.framework.Bundle bundle) - Overrides:
isDeployable
in classAbstractContextProvider
-
bundleAdded
A bundle has been added that could be a webapp- Specified by:
bundleAdded
in interfaceBundleProvider
- Parameters:
bundle
- the bundle- Throws:
Exception
-
bundleRemoved
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:
Exception
-