public abstract class AbstractWebAppProvider extends AbstractLifeCycle implements AppProvider
Base class for Jetty DeploymentManager Providers that are capable of deploying a webapp, either from a bundle or an OSGi service.
Modifier and Type | Class and Description |
---|---|
class |
AbstractWebAppProvider.OSGiApp
OSGiApp
Represents a deployable webapp.
|
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Constructor and Description |
---|
AbstractWebAppProvider(ServerInstanceWrapper wrapper) |
Modifier and Type | Method and Description |
---|---|
ContextHandler |
createContextHandler(App app)
Create a ContextHandler for an App
|
String[] |
getConfigurationClasses() |
String |
getDefaultsDescriptor()
Get the defaultsDescriptor.
|
DeploymentManager |
getDeploymentManager() |
static String |
getOriginId(org.osgi.framework.Bundle contributor,
String path) |
ServerInstanceWrapper |
getServerInstanceWrapper() |
String |
getTldBundles() |
boolean |
isExtract() |
boolean |
isParentLoaderPriority()
Get the parentLoaderPriority.
|
void |
setConfigurationClasses(String[] configurations) |
void |
setDefaultsDescriptor(String defaultsDescriptor)
Set the defaultsDescriptor.
|
void |
setDeploymentManager(DeploymentManager deploymentManager)
Set the Deployment Manager
|
void |
setExtract(boolean extract) |
void |
setParentLoaderPriority(boolean parentLoaderPriority)
Set the parentLoaderPriority.
|
void |
setServerInstanceWrapper(ServerInstanceWrapper wrapper) |
void |
setTldBundles(String tldBundles) |
addLifeCycleListener, doStart, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public AbstractWebAppProvider(ServerInstanceWrapper wrapper)
public boolean isParentLoaderPriority()
public void setParentLoaderPriority(boolean parentLoaderPriority)
parentLoaderPriority
- the parentLoaderPriority to setpublic String getDefaultsDescriptor()
public void setDefaultsDescriptor(String defaultsDescriptor)
defaultsDescriptor
- the defaultsDescriptor to setpublic boolean isExtract()
public void setExtract(boolean extract)
public void setTldBundles(String tldBundles)
tldBundles
- Comma separated list of bundles that contain tld jars
that should be setup on the jetty instances created here.public String getTldBundles()
public void setConfigurationClasses(String[] configurations)
configurations
- The configuration class names.public String[] getConfigurationClasses()
public void setServerInstanceWrapper(ServerInstanceWrapper wrapper)
public ServerInstanceWrapper getServerInstanceWrapper()
public DeploymentManager getDeploymentManager()
public void setDeploymentManager(DeploymentManager deploymentManager)
AppProvider
setDeploymentManager
in interface AppProvider
deploymentManager
- the deployment managerAppProvider.setDeploymentManager(org.eclipse.jetty.deploy.DeploymentManager)
public ContextHandler createContextHandler(App app) throws Exception
AppProvider
createContextHandler
in interface AppProvider
app
- The AppIOException
- if unable to create contextException
- if unable to create contextCopyright © 1995-2016 Webtide. All Rights Reserved.