public abstract class ScanningAppProvider extends AbstractLifeCycle implements AppProvider
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
protected FilenameFilter |
_filenameFilter |
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
Modifier | Constructor and Description |
---|---|
protected |
ScanningAppProvider(FilenameFilter filter) |
Modifier and Type | Method and Description |
---|---|
void |
addScannerListener(Scanner.Listener listener) |
protected App |
createApp(String filename)
Called by the Scanner.DiscreteListener to create a new App object.
|
protected void |
doStart() |
protected void |
doStop() |
protected void |
fileAdded(String filename) |
protected void |
fileChanged(String filename) |
protected void |
fileRemoved(String filename) |
protected Map<String,App> |
getDeployedApps() |
DeploymentManager |
getDeploymentManager()
Get the deploymentManager.
|
String |
getMonitoredDirName() |
Resource |
getMonitoredDirResource() |
int |
getScanInterval() |
boolean |
isRecursive() |
void |
setDeploymentManager(DeploymentManager deploymentManager)
Set the Deployment Manager
|
void |
setMonitoredDir(String dir)
Deprecated.
|
void |
setMonitoredDirName(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 final FilenameFilter _filenameFilter
protected ScanningAppProvider(FilenameFilter filter)
protected Map<String,App> getDeployedApps()
protected App createApp(String filename)
filename
- The file that is the context.xml. It is resolved by
Resource.newResource(String)
protected void doStart() throws Exception
doStart
in class AbstractLifeCycle
Exception
protected void doStop() throws Exception
doStop
in class AbstractLifeCycle
Exception
public DeploymentManager getDeploymentManager()
public Resource getMonitoredDirResource()
public 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(String dir)
setMonitoredDirName(String)
public void setMonitoredDirName(String dir)
dir
- Directory to scan for context descriptors or war filesprotected void setRecursive(boolean recursive)
public void setScanInterval(int scanInterval)
Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.