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:
AppProvider
,ServiceProvider
,LifeCycle
public class ServiceWebAppProvider extends AbstractWebAppProvider implements ServiceProvider
ServiceWebAppProviderJetty Provider that knows how to deploy a WebApp that has been registered as an OSGi service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ServiceWebAppProvider.ServiceApp
ServiceAppclass
ServiceWebAppProvider.WebAppTracker
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, AbstractLifeCycle.StopException
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description ServiceWebAppProvider(ServerInstanceWrapper wrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStart()
Method to override to start the lifecycleprotected void
doStop()
Method to override to stop the lifecycleboolean
serviceAdded(org.osgi.framework.ServiceReference serviceRef, ContextHandler context)
A webapp that was deployed as an osgi service has been added, and we want to deploy it.boolean
serviceRemoved(org.osgi.framework.ServiceReference serviceRef, 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, 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 Detail
-
ServiceWebAppProvider
public ServiceWebAppProvider(ServerInstanceWrapper wrapper)
-
-
Method Detail
-
serviceAdded
public boolean serviceAdded(org.osgi.framework.ServiceReference serviceRef, ContextHandler context)
A webapp that was deployed as an osgi service has been added, and we want to deploy it.- Specified by:
serviceAdded
in interfaceServiceProvider
- Parameters:
context
- the webapp
-
serviceRemoved
public boolean serviceRemoved(org.osgi.framework.ServiceReference serviceRef, ContextHandler context)
- Specified by:
serviceRemoved
in interfaceServiceProvider
- Parameters:
context
- the webapp
-
doStart
protected void doStart() throws java.lang.Exception
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.java.lang.Exception
- If there was a problem starting. Will cause a transition to FAILED state
-
doStop
protected void doStop() throws java.lang.Exception
Description copied from class:AbstractLifeCycle
Method to override to stop the lifecycle- Overrides:
doStop
in classAbstractLifeCycle
- Throws:
java.lang.Exception
- If there was a problem stopping. Will cause a transition to FAILED state
-
-