Package org.eclipse.jetty.osgi
Class AbstractContextProvider
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.osgi.AbstractContextProvider
- All Implemented Interfaces:
org.eclipse.jetty.deploy.AppProvider,org.eclipse.jetty.util.component.LifeCycle
- Direct Known Subclasses:
BundleContextProvider,BundleWebAppProvider
public abstract class AbstractContextProvider
extends org.eclipse.jetty.util.component.AbstractLifeCycle
implements org.eclipse.jetty.deploy.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/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
ConstructorsConstructorDescriptionAbstractContextProvider(String environment, org.eclipse.jetty.server.Server server, ContextFactory contextFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.server.handler.ContextHandlercreateContextHandler(org.eclipse.jetty.deploy.App app) String[]This is equivalent to getting theDeployable.CONFIGURATION_CLASSESproperty.Get the defaultsDescriptor.org.eclipse.jetty.deploy.DeploymentManagerorg.eclipse.jetty.server.ServerbooleanisDeployable(org.osgi.framework.Bundle bundle) booleanisDeployable(org.osgi.framework.ServiceReference service) booleanGet the extractWars.booleanGet the parentLoaderPriority.voidsetConfigurationClasses(String configurations) This is equivalent to setting theDeployable.CONFIGURATION_CLASSESproperty.voidsetConfigurationClasses(String[] configurations) This is equivalent to setting theDeployable.CONFIGURATION_CLASSESproperty.voidsetDefaultsDescriptor(String defaultsDescriptor) Set the defaultsDescriptor.voidsetDeploymentManager(org.eclipse.jetty.deploy.DeploymentManager deploymentManager) voidsetExtractWars(boolean extractWars) Set the extractWars.voidsetParentLoaderPriority(boolean parentLoaderPriority) Set the parentLoaderPriority.voidsetTldBundles(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, 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
-
AbstractContextProvider
public AbstractContextProvider(String environment, org.eclipse.jetty.server.Server server, ContextFactory contextFactory)
-
-
Method Details
-
getServer
public org.eclipse.jetty.server.Server getServer() -
getProperties
-
createContextHandler
-
setDeploymentManager
public void setDeploymentManager(org.eclipse.jetty.deploy.DeploymentManager deploymentManager) - Specified by:
setDeploymentManagerin interfaceorg.eclipse.jetty.deploy.AppProvider
-
getEnvironmentName
- Specified by:
getEnvironmentNamein interfaceorg.eclipse.jetty.deploy.AppProvider
-
getDeploymentManager
public org.eclipse.jetty.deploy.DeploymentManager getDeploymentManager() -
isExtractWars
public boolean isExtractWars()Get the extractWars. This is equivalent to getting theDeployable.EXTRACT_WARSproperty.- Returns:
- the extractWars
-
setExtractWars
public void setExtractWars(boolean extractWars) Set the extractWars. This is equivalent to setting theDeployable.EXTRACT_WARSproperty.- Parameters:
extractWars- the extractWars to set
-
isParentLoaderPriority
public boolean isParentLoaderPriority()Get the parentLoaderPriority. This is equivalent to getting theDeployable.PARENT_LOADER_PRIORITYproperty.- Returns:
- the parentLoaderPriority
-
setParentLoaderPriority
public void setParentLoaderPriority(boolean parentLoaderPriority) Set the parentLoaderPriority. This is equivalent to setting theDeployable.PARENT_LOADER_PRIORITYproperty.- Parameters:
parentLoaderPriority- the parentLoaderPriority to set
-
getDefaultsDescriptor
Get the defaultsDescriptor. This is equivalent to getting theDeployable.DEFAULTS_DESCRIPTORproperty.- Returns:
- the defaultsDescriptor
-
setDefaultsDescriptor
Set the defaultsDescriptor. This is equivalent to setting theDeployable.DEFAULTS_DESCRIPTORproperty.- Parameters:
defaultsDescriptor- the defaultsDescriptor to set
-
setConfigurationClasses
This is equivalent to setting theDeployable.CONFIGURATION_CLASSESproperty.- Parameters:
configurations- The configuration class names as a comma separated list
-
setConfigurationClasses
This is equivalent to setting theDeployable.CONFIGURATION_CLASSESproperty.- Parameters:
configurations- The configuration class names.
-
getConfigurationClasses
This is equivalent to getting theDeployable.CONFIGURATION_CLASSESproperty.- Returns:
- The configuration class names.
-
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) -
isDeployable
public boolean isDeployable(org.osgi.framework.ServiceReference service)
-