@ManagedObject(value="Abstract Provider for loading webapps") public abstract class ScanningAppProvider extends AbstractLifeCycle implements AppProvider
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
protected FilenameFilter |
_filenameFilter |
Modifier | Constructor and Description |
---|---|
protected |
ScanningAppProvider() |
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 boolean |
exists(String path) |
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() |
List<Resource> |
getMonitoredResources() |
int |
getScanInterval() |
boolean |
isRecursive() |
void |
setDeploymentManager(DeploymentManager deploymentManager)
Set the Deployment Manager
|
protected void |
setFilenameFilter(FilenameFilter filter) |
void |
setMonitoredDirectories(Collection<String> directories) |
void |
setMonitoredDirName(String dir) |
void |
setMonitoredDirResource(Resource resource) |
void |
setMonitoredResources(List<Resource> resources) |
protected void |
setRecursive(boolean recursive) |
void |
setScanInterval(int scanInterval) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, 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 FilenameFilter _filenameFilter
protected ScanningAppProvider()
protected ScanningAppProvider(FilenameFilter filter)
protected void setFilenameFilter(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
protected boolean exists(String path)
public DeploymentManager getDeploymentManager()
public Resource getMonitoredDirResource()
public String getMonitoredDirName()
@ManagedAttribute(value="scanning interval to detect changes which need reloaded") public int getScanInterval()
@ManagedAttribute(value="recursive scanning supported") public boolean isRecursive()
public void setDeploymentManager(DeploymentManager deploymentManager)
AppProvider
setDeploymentManager
in interface AppProvider
public void setMonitoredDirResource(Resource resource)
public void addScannerListener(Scanner.Listener listener)
public void setMonitoredDirName(String dir)
dir
- Directory to scan for context descriptors or war filespublic void setMonitoredDirectories(Collection<String> directories)
protected void setRecursive(boolean recursive)
public void setScanInterval(int scanInterval)
Copyright © 1995-2015 Webtide. All Rights Reserved.