Package org.eclipse.jetty.osgi.boot
Class ServiceContextProvider
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.osgi.boot.AbstractContextProvider
org.eclipse.jetty.osgi.boot.ServiceContextProvider
- All Implemented Interfaces:
AppProvider,ServiceProvider,LifeCycle
ServiceContextProvider
Jetty DeploymentManager Provider that is able to deploy ContextHandlers discovered via OSGi as services.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassContextTrackerclassServiceAppNested classes/interfaces inherited from class org.eclipse.jetty.osgi.boot.AbstractContextProvider
AbstractContextProvider.OSGiAppNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStart()Method to override to start the lifecycleprotected voiddoStop()Method to override to stop the lifecyclebooleanserviceAdded(org.osgi.framework.ServiceReference serviceRef, ContextHandler context) booleanserviceRemoved(org.osgi.framework.ServiceReference serviceRef, ContextHandler context) Methods inherited from class org.eclipse.jetty.osgi.boot.AbstractContextProvider
createContextHandler, getDeploymentManager, getServerInstanceWrapper, setDeploymentManagerMethods 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
-
ServiceContextProvider
-
-
Method Details
-
serviceAdded
- Specified by:
serviceAddedin interfaceServiceProvider
-
serviceRemoved
public boolean serviceRemoved(org.osgi.framework.ServiceReference serviceRef, ContextHandler context) - Specified by:
serviceRemovedin interfaceServiceProvider
-
doStart
Description copied from class:AbstractLifeCycleMethod to override to start the lifecycle- Overrides:
doStartin 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:AbstractLifeCycleMethod to override to stop the lifecycle- Overrides:
doStopin classAbstractLifeCycle- Throws:
Exception- If there was a problem stopping. Will cause a transition to FAILED state
-