Package org.eclipse.jetty.osgi.boot
Class AbstractWebAppProvider
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.osgi.boot.AbstractWebAppProvider
-
- All Implemented Interfaces:
AppProvider
,LifeCycle
- Direct Known Subclasses:
BundleWebAppProvider
,ServiceWebAppProvider
public abstract class AbstractWebAppProvider extends AbstractLifeCycle implements AppProvider
AbstractWebAppProviderBase class for Jetty DeploymentManager Providers that are capable of deploying a webapp, either from a bundle or an OSGi service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AbstractWebAppProvider.OSGiApp
OSGiApp Represents a deployable webapp.-
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 AbstractWebAppProvider(ServerInstanceWrapper wrapper)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextHandler
createContextHandler(App app)
Create a ContextHandler for an Appjava.lang.String[]
getConfigurationClasses()
java.lang.String
getDefaultsDescriptor()
Get the defaultsDescriptor.DeploymentManager
getDeploymentManager()
static java.lang.String
getOriginId(org.osgi.framework.Bundle contributor, java.lang.String path)
ServerInstanceWrapper
getServerInstanceWrapper()
java.lang.String
getTldBundles()
boolean
isExtract()
boolean
isParentLoaderPriority()
Get the parentLoaderPriority.void
setConfigurationClasses(java.lang.String[] configurations)
void
setDefaultsDescriptor(java.lang.String defaultsDescriptor)
Set the defaultsDescriptor.void
setDeploymentManager(DeploymentManager deploymentManager)
Set the Deployment Managervoid
setExtract(boolean extract)
void
setParentLoaderPriority(boolean parentLoaderPriority)
Set the parentLoaderPriority.void
setServerInstanceWrapper(ServerInstanceWrapper wrapper)
void
setTldBundles(java.lang.String tldBundles)
-
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
-
AbstractWebAppProvider
public AbstractWebAppProvider(ServerInstanceWrapper wrapper)
-
-
Method Detail
-
isParentLoaderPriority
public boolean isParentLoaderPriority()
Get the parentLoaderPriority.- Returns:
- the parentLoaderPriority
-
setParentLoaderPriority
public void setParentLoaderPriority(boolean parentLoaderPriority)
Set the parentLoaderPriority.- Parameters:
parentLoaderPriority
- the parentLoaderPriority to set
-
getDefaultsDescriptor
public java.lang.String getDefaultsDescriptor()
Get the defaultsDescriptor.- Returns:
- the defaultsDescriptor
-
setDefaultsDescriptor
public void setDefaultsDescriptor(java.lang.String defaultsDescriptor)
Set the defaultsDescriptor.- Parameters:
defaultsDescriptor
- the defaultsDescriptor to set
-
isExtract
public boolean isExtract()
-
setExtract
public void setExtract(boolean extract)
-
setTldBundles
public void setTldBundles(java.lang.String tldBundles)
- Parameters:
tldBundles
- Comma separated list of bundles that contain tld jars that should be setup on the jetty instances created here.
-
getTldBundles
public java.lang.String getTldBundles()
- Returns:
- The list of bundles that contain tld jars that should be setup on the jetty instances created here.
-
setConfigurationClasses
public void setConfigurationClasses(java.lang.String[] configurations)
- Parameters:
configurations
- The configuration class names.
-
getConfigurationClasses
public java.lang.String[] getConfigurationClasses()
-
setServerInstanceWrapper
public void setServerInstanceWrapper(ServerInstanceWrapper wrapper)
-
getServerInstanceWrapper
public ServerInstanceWrapper getServerInstanceWrapper()
-
getDeploymentManager
public DeploymentManager getDeploymentManager()
-
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- See Also:
AppProvider.setDeploymentManager(org.eclipse.jetty.deploy.DeploymentManager)
-
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
-
getOriginId
public static java.lang.String getOriginId(org.osgi.framework.Bundle contributor, java.lang.String path)
-
-