org.eclipse.jetty.deploy
类 WebAppDeployer

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.deploy.WebAppDeployer
所有已实现的接口:
LifeCycle

已过时。

public class WebAppDeployer
extends AbstractLifeCycle

Legacy Web Application Deployer.

Note: The WebAppDeployer is being phased out of Jetty in favor of the DeploymentManager and WebAppProvider implementation.

The class searches a directory for and deploys standard web application. At startup, the directory specified by setWebAppDir(String) is searched for subdirectories (excluding hidden and CVS) or files ending with ".zip" or "*.war". For each webapp discovered is passed to a new instance of WebAppContext (or a subclass specified by getContexts(). ContextHandlerCollection.getContextClass()

This deployer does not do hot deployment or undeployment. Nor does it support per web application configuration. For these features see ContextDeployer.

另请参见:
DeploymentManager, ScanningAppProvider, ContextDeployer

嵌套类摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
WebAppDeployer()
          已过时。  
 
方法摘要
 void doStart()
          已过时。  
 void doStop()
          已过时。  
 boolean getAllowDuplicates()
          已过时。  
 Object getAttribute(String name)
          已过时。 Get a contextAttribute that will be set for every Context deployed by this deployer.
 String[] getConfigurationClasses()
          已过时。  
 HandlerCollection getContexts()
          已过时。  
 String getDefaultsDescriptor()
          已过时。  
 String getWebAppDir()
          已过时。  
 boolean isExtract()
          已过时。  
 boolean isParentLoaderPriority()
          已过时。  
 void removeAttribute(String name)
          已过时。 Remove a contextAttribute that will be set for every Context deployed by this deployer.
 void scan()
          已过时。 Scan for webapplications.
 void setAllowDuplicates(boolean allowDuplicates)
          已过时。  
 void setAttribute(String name, Object value)
          已过时。 Set a contextAttribute that will be set for every Context deployed by this deployer.
 void setConfigurationClasses(String[] configurationClasses)
          已过时。  
 void setContexts(HandlerCollection contexts)
          已过时。  
 void setDefaultsDescriptor(String defaultsDescriptor)
          已过时。  
 void setExtract(boolean extract)
          已过时。  
 void setParentLoaderPriority(boolean parentPriorityClassLoading)
          已过时。  
 void setWebAppDir(String dir)
          已过时。  
 
从类 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
 

构造方法详细信息

WebAppDeployer

public WebAppDeployer()
已过时。 
方法详细信息

getConfigurationClasses

public String[] getConfigurationClasses()
已过时。 

setConfigurationClasses

public void setConfigurationClasses(String[] configurationClasses)
已过时。 

getContexts

public HandlerCollection getContexts()
已过时。 

setContexts

public void setContexts(HandlerCollection contexts)
已过时。 

getDefaultsDescriptor

public String getDefaultsDescriptor()
已过时。 

setDefaultsDescriptor

public void setDefaultsDescriptor(String defaultsDescriptor)
已过时。 

isExtract

public boolean isExtract()
已过时。 

setExtract

public void setExtract(boolean extract)
已过时。 

isParentLoaderPriority

public boolean isParentLoaderPriority()
已过时。 

setParentLoaderPriority

public void setParentLoaderPriority(boolean parentPriorityClassLoading)
已过时。 

getWebAppDir

public String getWebAppDir()
已过时。 

setWebAppDir

public void setWebAppDir(String dir)
已过时。 

getAllowDuplicates

public boolean getAllowDuplicates()
已过时。 

setAllowDuplicates

public void setAllowDuplicates(boolean allowDuplicates)
已过时。 
参数:
allowDuplicates - If false, do not deploy webapps that have already been deployed or duplicate context path

setAttribute

public void setAttribute(String name,
                         Object value)
已过时。 
Set a contextAttribute that will be set for every Context deployed by this deployer.

参数:
name -
value -

getAttribute

public Object getAttribute(String name)
已过时。 
Get a contextAttribute that will be set for every Context deployed by this deployer.

参数:
name -
返回:
the attribute value

removeAttribute

public void removeAttribute(String name)
已过时。 
Remove a contextAttribute that will be set for every Context deployed by this deployer.

参数:
name -

doStart

public void doStart()
             throws Exception
已过时。 
覆盖:
AbstractLifeCycle 中的 doStart
抛出:
Exception

scan

public void scan()
          throws Exception
已过时。 
Scan for webapplications.

抛出:
Exception

doStop

public void doStop()
            throws Exception
已过时。 
覆盖:
AbstractLifeCycle 中的 doStop
抛出:
Exception


Copyright © 2013. All Rights Reserved.