Package org.eclipse.jetty.osgi.boot
Class ServiceWebAppProvider
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.osgi.boot.AbstractWebAppProvider
org.eclipse.jetty.osgi.boot.ServiceWebAppProvider
- All Implemented Interfaces:
org.eclipse.jetty.deploy.AppProvider,ServiceProvider,org.eclipse.jetty.util.component.LifeCycle
ServiceWebAppProvider
Jetty Provider that knows how to deploy a WebApp that has been registered as an OSGi service.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassServiceAppclassWebAppTrackerNested classes/interfaces inherited from class org.eclipse.jetty.osgi.boot.AbstractWebAppProvider
AbstractWebAppProvider.OSGiAppNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStart()protected voiddoStop()booleanserviceAdded(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.ContextHandler context) A webapp that was deployed as an osgi service has been added, and we want to deploy it.booleanserviceRemoved(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.ContextHandler context) Methods inherited from class org.eclipse.jetty.osgi.boot.AbstractWebAppProvider
createContextHandler, getDefaultsDescriptor, getDeploymentManager, getOriginId, getServerInstanceWrapper, getTldBundles, isExtract, isParentLoaderPriority, setDefaultsDescriptor, setDeploymentManager, setExtract, setParentLoaderPriority, setServerInstanceWrapper, 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
-
ServiceWebAppProvider
-
-
Method Details
-
serviceAdded
public boolean serviceAdded(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.ContextHandler context) A webapp that was deployed as an osgi service has been added, and we want to deploy it.- Specified by:
serviceAddedin interfaceServiceProvider- Parameters:
context- the webapp
-
serviceRemoved
public boolean serviceRemoved(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.ContextHandler context) - Specified by:
serviceRemovedin interfaceServiceProvider- Parameters:
context- the webapp
-
doStart
- Overrides:
doStartin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
Exception
-