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 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
protected  FilenameFilter _filenameFilter
           
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
protected ScanningAppProvider(FilenameFilter filter)
           
 
方法摘要
 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)
          已过时。 Use setMonitoredDirName(String)
 void setMonitoredDirName(String dir)
           
 void setMonitoredDirResource(Resource contextsDir)
           
protected  void setRecursive(boolean recursive)
           
 void setScanInterval(int scanInterval)
           
 
从类 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
 
从接口 org.eclipse.jetty.deploy.AppProvider 继承的方法
createContextHandler
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

字段详细信息

_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.