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.AbstractLifeCycleListenerLifeCycle.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, setScanIntervaladdLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic ConfigurationManager getConfigurationManager()
public void setConfigurationManager(ConfigurationManager configurationManager)
configurationManager - the configurationManager to setpublic ContextHandler createContextHandler(App app) throws Exception
AppProviderapp - The AppIOExceptionExceptionpublic 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.