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 AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractContextProvider(Server server, Deployer deployer, String environment, ContextFactory contextFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateContextHandler(BundleMetadata metadata) booleanisDeployable(org.osgi.framework.Bundle bundle) voidsetTldBundles(String tldBundles) Methods inherited from class 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)
-