public class ContextProvider extends ScanningAppProvider
This specialization of ScanningAppProvider
is the
replacement for the old (and deprecated) org.eclipse.jetty.deploy.ContextDeployer
and it will scan a directory
only for context.xml files.
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
_filenameFilter
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
Constructor and Description |
---|
ContextProvider() |
Modifier and Type | Method and Description |
---|---|
ContextHandler |
createContextHandler(App app)
Create a ContextHandler for an App
|
ConfigurationManager |
getConfigurationManager() |
String |
getDefaultsDescriptor()
Get the defaultsDescriptor.
|
boolean |
isParentLoaderPriority()
Get the parentLoaderPriority.
|
void |
setConfigurationManager(ConfigurationManager configurationManager)
Set the configurationManager.
|
void |
setDefaultsDescriptor(String defaultsDescriptor)
Set the defaultsDescriptor.
|
void |
setParentLoaderPriority(boolean parentLoaderPriority)
Set the parentLoaderPriority.
|
addScannerListener, createApp, doStart, doStop, fileAdded, fileChanged, fileRemoved, getDeployedApps, getDeploymentManager, getMonitoredDirName, getMonitoredDirResource, getScanInterval, isRecursive, setDeploymentManager, setMonitoredDir, setMonitoredDirName, setMonitoredDirResource, setRecursive, setScanInterval
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public ConfigurationManager getConfigurationManager()
public void setConfigurationManager(ConfigurationManager configurationManager)
configurationManager
- the configurationManager to setpublic ContextHandler createContextHandler(App app) throws Exception
AppProvider
app
- The AppIOException
Exception
public boolean isParentLoaderPriority()
public void setParentLoaderPriority(boolean parentLoaderPriority)
If the context created is a WebAppContext, then set the
default value for WebAppContext.setParentLoaderPriority(boolean)
.
parentLoaderPriority
- the parentLoaderPriority to setpublic String getDefaultsDescriptor()
public void setDefaultsDescriptor(String defaultsDescriptor)
If the context created is a WebAppContext, then set the
default value for WebAppContext.setDefaultsDescriptor(String)
defaultsDescriptor
- the defaultsDescriptor to setCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.