Class AbstractContextProvider
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.osgi.AbstractContextProvider
- All Implemented Interfaces:
LifeCycle
- Direct Known Subclasses:
BundleContextProvider
,BundleWebAppProvider
Base class for deployers that can deploy ContextHandlers into
Jetty that have been discovered via OSGI either as bundles or services.
-
Nested Class Summary
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
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractContextProvider
(Server server, Deployer deployer, String environment, ContextFactory contextFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateContextHandler
(BundleMetadata metadata) boolean
isDeployable
(org.osgi.framework.Bundle bundle) void
setTldBundles
(String tldBundles) Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStart, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
-
Constructor Details
-
AbstractContextProvider
public AbstractContextProvider(Server server, Deployer deployer, String environment, ContextFactory contextFactory)
-
-
Method Details
-
getServer
-
getAttributes
-
createContextHandler
- Throws:
Exception
-
getEnvironmentName
-
getContextHandlerManagement
-
setTldBundles
- Parameters:
tldBundles
- Comma separated list of bundles that contain tld jars that should be setup on the context instances created here.
-
getTldBundles
- Returns:
- The list of bundles that contain tld jars that should be setup on the contexts create here.
-
isDeployable
public boolean isDeployable(org.osgi.framework.Bundle bundle)
-