public class WebAppDeployer extends AbstractLifeCycle
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
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
Constructor and Description |
---|
WebAppDeployer()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
doStart()
Deprecated.
|
void |
doStop()
Deprecated.
|
boolean |
getAllowDuplicates()
Deprecated.
|
Object |
getAttribute(String name)
Deprecated.
Get a contextAttribute that will be set for every Context deployed by this deployer.
|
String[] |
getConfigurationClasses()
Deprecated.
|
HandlerCollection |
getContexts()
Deprecated.
|
String |
getDefaultsDescriptor()
Deprecated.
|
String |
getWebAppDir()
Deprecated.
|
boolean |
isExtract()
Deprecated.
|
boolean |
isParentLoaderPriority()
Deprecated.
|
void |
removeAttribute(String name)
Deprecated.
Remove a contextAttribute that will be set for every Context deployed by this deployer.
|
void |
scan()
Deprecated.
Scan for webapplications.
|
void |
setAllowDuplicates(boolean allowDuplicates)
Deprecated.
|
void |
setAttribute(String name,
Object value)
Deprecated.
Set a contextAttribute that will be set for every Context deployed by this deployer.
|
void |
setConfigurationClasses(String[] configurationClasses)
Deprecated.
|
void |
setContexts(HandlerCollection contexts)
Deprecated.
|
void |
setDefaultsDescriptor(String defaultsDescriptor)
Deprecated.
|
void |
setExtract(boolean extract)
Deprecated.
|
void |
setParentLoaderPriority(boolean parentPriorityClassLoading)
Deprecated.
|
void |
setWebAppDir(String dir)
Deprecated.
|
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public String[] getConfigurationClasses()
public void setConfigurationClasses(String[] configurationClasses)
public HandlerCollection getContexts()
public void setContexts(HandlerCollection contexts)
public String getDefaultsDescriptor()
public void setDefaultsDescriptor(String defaultsDescriptor)
public boolean isExtract()
public void setExtract(boolean extract)
public boolean isParentLoaderPriority()
public void setParentLoaderPriority(boolean parentPriorityClassLoading)
public String getWebAppDir()
public void setWebAppDir(String dir)
public boolean getAllowDuplicates()
public void setAllowDuplicates(boolean allowDuplicates)
allowDuplicates
- If false, do not deploy webapps that have already been deployed or duplicate context pathpublic void setAttribute(String name, Object value)
name
- value
- public Object getAttribute(String name)
name
- public void removeAttribute(String name)
name
- public void doStart() throws Exception
doStart
in class AbstractLifeCycle
Exception
public void doStop() throws Exception
doStop
in class AbstractLifeCycle
Exception
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.