org.eclipse.jetty.deploy.providers
类 ScanningAppProvider
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.deploy.providers.ScanningAppProvider
- 所有已实现的接口:
- AppProvider, LifeCycle
- 直接已知子类:
- ContextProvider, WebAppProvider
public abstract class ScanningAppProvider
- extends AbstractLifeCycle
- implements AppProvider
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法 |
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_filenameFilter
protected final FilenameFilter _filenameFilter
ScanningAppProvider
protected ScanningAppProvider(FilenameFilter filter)
getDeployedApps
protected Map<String,App> getDeployedApps()
- 返回:
- The index of currently deployed applications.
createApp
protected App createApp(String filename)
- Called by the Scanner.DiscreteListener to create a new App object.
Isolated in a method so that it is possible to override the default App
object for specialized implementations of the AppProvider.
- 参数:
filename - The file that is the context.xml. It is resolved by
Resource.newResource(String)
- 返回:
- The App object for this particular context definition file.
doStart
protected void doStart()
throws Exception
- 覆盖:
- 类
AbstractLifeCycle 中的 doStart
- 抛出:
Exception
doStop
protected void doStop()
throws Exception
- 覆盖:
- 类
AbstractLifeCycle 中的 doStop
- 抛出:
Exception
fileAdded
protected void fileAdded(String filename)
throws Exception
- 抛出:
Exception
fileChanged
protected void fileChanged(String filename)
throws Exception
- 抛出:
Exception
fileRemoved
protected void fileRemoved(String filename)
throws Exception
- 抛出:
Exception
getDeploymentManager
public DeploymentManager getDeploymentManager()
- Get the deploymentManager.
- 返回:
- the deploymentManager
getMonitoredDirResource
public Resource getMonitoredDirResource()
getMonitoredDirName
public String getMonitoredDirName()
getScanInterval
public int getScanInterval()
isRecursive
public boolean isRecursive()
setDeploymentManager
public void setDeploymentManager(DeploymentManager deploymentManager)
- 从接口
AppProvider 复制的描述
- Set the Deployment Manager
- 指定者:
- 接口
AppProvider 中的 setDeploymentManager
setMonitoredDirResource
public void setMonitoredDirResource(Resource contextsDir)
addScannerListener
public void addScannerListener(Scanner.Listener listener)
setMonitoredDir
public void setMonitoredDir(String dir)
- 已过时。 Use
setMonitoredDirName(String)
setMonitoredDirName
public void setMonitoredDirName(String dir)
- 参数:
dir - Directory to scan for context descriptors or war files
setRecursive
protected void setRecursive(boolean recursive)
setScanInterval
public void setScanInterval(int scanInterval)
Copyright © 2013. All Rights Reserved.