Package org.eclipse.jetty.osgi.boot
Class AbstractContextProvider
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.osgi.boot.AbstractContextProvider
-
- All Implemented Interfaces:
AppProvider
,LifeCycle
- Direct Known Subclasses:
BundleContextProvider
,ServiceContextProvider
public abstract class AbstractContextProvider extends AbstractLifeCycle implements AppProvider
AbstractContextProvider Base class for DeploymentManager Providers that can deploy ContextHandlers into Jetty that have been discovered via OSGI either as bundles or services.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AbstractContextProvider.OSGiApp
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 AbstractContextProvider(ServerInstanceWrapper wrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextHandler
createContextHandler(App app)
Create a ContextHandler for an AppDeploymentManager
getDeploymentManager()
ServerInstanceWrapper
getServerInstanceWrapper()
void
setDeploymentManager(DeploymentManager deploymentManager)
Set the Deployment Manager-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, doStart, doStop, 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
-
AbstractContextProvider
public AbstractContextProvider(ServerInstanceWrapper wrapper)
-
-
Method Detail
-
getServerInstanceWrapper
public ServerInstanceWrapper getServerInstanceWrapper()
-
createContextHandler
public ContextHandler createContextHandler(App app) throws java.lang.Exception
Description copied from interface:AppProvider
Create a ContextHandler for an App- Specified by:
createContextHandler
in interfaceAppProvider
- Parameters:
app
- The App- Returns:
- A ContextHandler
- Throws:
java.io.IOException
- if unable to create contextjava.lang.Exception
- if unable to create context- See Also:
AppProvider.createContextHandler(org.eclipse.jetty.deploy.App)
-
setDeploymentManager
public void setDeploymentManager(DeploymentManager deploymentManager)
Description copied from interface:AppProvider
Set the Deployment Manager- Specified by:
setDeploymentManager
in interfaceAppProvider
- Parameters:
deploymentManager
- the deployment manager
-
getDeploymentManager
public DeploymentManager getDeploymentManager()
-
-