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
public class ServiceContextProvider extends AbstractContextProvider implements ServiceProvider
ServiceContextProvider Jetty DeploymentManager Provider that is able to deploy ContextHandlers discovered via OSGi as services.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ServiceContextProvider.ContextTracker
ContextTrackerclass
ServiceContextProvider.ServiceApp
ServiceApp-
Nested classes/interfaces inherited from class org.eclipse.jetty.osgi.boot.AbstractContextProvider
AbstractContextProvider.OSGiApp
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description ServiceContextProvider(ServerInstanceWrapper wrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStart()
protected void
doStop()
boolean
serviceAdded(org.osgi.framework.ServiceReference serviceRef, ContextHandler context)
boolean
serviceRemoved(org.osgi.framework.ServiceReference serviceRef, ContextHandler context)
-
Methods inherited from class org.eclipse.jetty.osgi.boot.AbstractContextProvider
createContextHandler, getDeploymentManager, getServerInstanceWrapper, setDeploymentManager
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, 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
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
-
-
-
Constructor Detail
-
ServiceContextProvider
public ServiceContextProvider(ServerInstanceWrapper wrapper)
-
-
Method Detail
-
serviceAdded
public boolean serviceAdded(org.osgi.framework.ServiceReference serviceRef, ContextHandler context)
- Specified by:
serviceAdded
in interfaceServiceProvider
-
serviceRemoved
public boolean serviceRemoved(org.osgi.framework.ServiceReference serviceRef, ContextHandler context)
- Specified by:
serviceRemoved
in interfaceServiceProvider
-
doStart
protected void doStart() throws java.lang.Exception
- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
java.lang.Exception
-
doStop
protected void doStop() throws java.lang.Exception
- Overrides:
doStop
in classAbstractLifeCycle
- Throws:
java.lang.Exception
-
-