public abstract class ScanningAppProvider extends AbstractLifeCycle implements AppProvider
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.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, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateContextHandleraddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopprotected 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 AbstractLifeCycleExceptionprotected void doStop()
throws Exception
doStop in class AbstractLifeCycleExceptionpublic DeploymentManager getDeploymentManager()
public Resource getMonitoredDirResource()
public String getMonitoredDirName()
public int getScanInterval()
public boolean isRecursive()
public void setDeploymentManager(DeploymentManager deploymentManager)
AppProvidersetDeploymentManager in interface AppProviderpublic 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.