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:
org.eclipse.jetty.deploy.AppProvider,BundleProvider,org.eclipse.jetty.util.component.LifeCycle
BundleWebAppProvider
A Jetty Provider that knows how to deploy a WebApp contained inside a Bundle.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPING -
Constructor Summary
ConstructorsConstructorDescriptionBundleWebAppProvider(String environment, org.eclipse.jetty.server.Server server, ContextFactory contextFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbundleAdded(org.osgi.framework.Bundle bundle) A bundle has been added that could be a webappbooleanbundleRemoved(org.osgi.framework.Bundle bundle) Bundle has been removed.protected voiddoStart()protected voiddoStop()booleanisDeployable(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, setTldBundlesMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
-
Constructor Details
-
BundleWebAppProvider
public BundleWebAppProvider(String environment, org.eclipse.jetty.server.Server server, ContextFactory contextFactory)
-
-
Method Details
-
doStart
-
doStop
-
isDeployable
public boolean isDeployable(org.osgi.framework.Bundle bundle) - Overrides:
isDeployablein classAbstractContextProvider
-
bundleAdded
A bundle has been added that could be a webapp- Specified by:
bundleAddedin interfaceBundleProvider- Parameters:
bundle- the bundle- Throws:
Exception
-
bundleRemoved
Bundle has been removed. If it was a webapp we deployed, undeploy it.- Specified by:
bundleRemovedin interfaceBundleProvider- Parameters:
bundle- the bundle- Returns:
- true if this was a webapp we had deployed, false otherwise
- Throws:
Exception
-