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:
org.eclipse.jetty.deploy.AppProvider,ServiceProvider,org.eclipse.jetty.util.component.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
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) booleanserviceRemoved(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.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
public boolean serviceAdded(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.ContextHandler context) - Specified by:
serviceAddedin interfaceServiceProvider
-
serviceRemoved
public boolean serviceRemoved(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.ContextHandler context) - Specified by:
serviceRemovedin interfaceServiceProvider
-
doStart
- Overrides:
doStartin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
Exception
-