org.eclipse.jetty.deploy.providers
public abstract class ScanningAppProvider extends AbstractLifeCycle implements AppProvider
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
protected java.io.FilenameFilter |
_filenameFilter |
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
Modifier | Constructor and Description |
---|---|
protected |
ScanningAppProvider(java.io.FilenameFilter filter) |
Modifier and Type | Method and Description |
---|---|
void |
addScannerListener(Scanner.Listener listener) |
protected App |
createApp(java.lang.String filename)
Called by the Scanner.DiscreteListener to create a new App object.
|
protected void |
doStart() |
protected void |
doStop() |
protected void |
fileAdded(java.lang.String filename) |
protected void |
fileChanged(java.lang.String filename) |
protected void |
fileRemoved(java.lang.String filename) |
protected java.util.Map<java.lang.String,App> |
getDeployedApps() |
DeploymentManager |
getDeploymentManager()
Get the deploymentManager.
|
java.lang.String |
getMonitoredDirName() |
Resource |
getMonitoredDirResource() |
int |
getScanInterval() |
boolean |
isRecursive() |
void |
setDeploymentManager(DeploymentManager deploymentManager)
Set the Deployment Manager
|
void |
setMonitoredDir(java.lang.String dir)
Deprecated.
|
void |
setMonitoredDirName(java.lang.String dir) |
void |
setMonitoredDirResource(Resource contextsDir) |
protected void |
setRecursive(boolean recursive) |
void |
setScanInterval(int scanInterval) |
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createContextHandler
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
protected java.util.Map<java.lang.String,App> getDeployedApps()
protected App createApp(java.lang.String filename)
filename
- The file that is the context.xml. It is resolved by
Resource.newResource(String)
protected void doStart() throws java.lang.Exception
doStart
in class AbstractLifeCycle
java.lang.Exception
protected void doStop() throws java.lang.Exception
doStop
in class AbstractLifeCycle
java.lang.Exception
protected void fileAdded(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
protected void fileChanged(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
protected void fileRemoved(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public DeploymentManager getDeploymentManager()
public Resource getMonitoredDirResource()
public java.lang.String getMonitoredDirName()
public int getScanInterval()
public boolean isRecursive()
public void setDeploymentManager(DeploymentManager deploymentManager)
AppProvider
setDeploymentManager
in interface AppProvider
public void setMonitoredDirResource(Resource contextsDir)
public void addScannerListener(Scanner.Listener listener)
public void setMonitoredDir(java.lang.String dir)
setMonitoredDirName(String)
public void setMonitoredDirName(java.lang.String dir)
dir
- Directory to scan for context descriptors or war filesprotected void setRecursive(boolean recursive)
public void setScanInterval(int scanInterval)
Copyright © 2013. All Rights Reserved.