AppProvider
, LifeCycle
BundleWebAppProvider
, ServiceWebAppProvider
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 | Description |
---|---|---|
class |
AbstractWebAppProvider.OSGiApp |
OSGiApp
Represents a deployable webapp.
|
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING
Constructor | Description |
---|---|
AbstractWebAppProvider(ServerInstanceWrapper wrapper) |
Modifier and Type | Method | Description |
---|---|---|
ContextHandler |
createContextHandler(App app) |
Create a ContextHandler for an App
|
java.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 Manager
|
void |
setExtract(boolean extract) |
|
void |
setParentLoaderPriority(boolean parentLoaderPriority) |
Set the parentLoaderPriority.
|
void |
setServerInstanceWrapper(ServerInstanceWrapper wrapper) |
|
void |
setTldBundles(java.lang.String tldBundles) |
addLifeCycleListener, doStart, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stop
public AbstractWebAppProvider(ServerInstanceWrapper wrapper)
public boolean isParentLoaderPriority()
public void setParentLoaderPriority(boolean parentLoaderPriority)
parentLoaderPriority
- the parentLoaderPriority to setpublic java.lang.String getDefaultsDescriptor()
public void setDefaultsDescriptor(java.lang.String defaultsDescriptor)
defaultsDescriptor
- the defaultsDescriptor to setpublic boolean isExtract()
public void setExtract(boolean extract)
public void setTldBundles(java.lang.String tldBundles)
tldBundles
- Comma separated list of bundles that contain tld jars
that should be setup on the jetty instances created here.public java.lang.String getTldBundles()
public void setConfigurationClasses(java.lang.String[] configurations)
configurations
- The configuration class names.public java.lang.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 java.lang.Exception
AppProvider
createContextHandler
in interface AppProvider
app
- The Appjava.io.IOException
- if unable to create contextjava.lang.Exception
- if unable to create contextpublic static java.lang.String getOriginId(org.osgi.framework.Bundle contributor, java.lang.String path)
Copyright © 1995–2018 Webtide. All rights reserved.