public class WebAppDeployer
extends org.mortbay.component.AbstractLifeCycle
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 webapplication configuration. For these features
see ContextDeployer
.ContextDeployer}
Constructor and Description |
---|
WebAppDeployer() |
Modifier and Type | Method and Description |
---|---|
void |
doStart() |
void |
doStop() |
boolean |
getAllowDuplicates() |
String[] |
getConfigurationClasses() |
HandlerContainer |
getContexts() |
String |
getDefaultsDescriptor() |
String |
getWebAppDir() |
boolean |
isExtract() |
boolean |
isParentLoaderPriority() |
void |
scan()
Scan for webapplications.
|
void |
setAllowDuplicates(boolean allowDuplicates) |
void |
setConfigurationClasses(String[] configurationClasses) |
void |
setContexts(HandlerContainer contexts) |
void |
setDefaultsDescriptor(String defaultsDescriptor) |
void |
setExtract(boolean extract) |
void |
setParentLoaderPriority(boolean parentPriorityClassLoading) |
void |
setWebAppDir(String dir) |
public String[] getConfigurationClasses()
public void setConfigurationClasses(String[] configurationClasses)
public HandlerContainer getContexts()
public void setContexts(HandlerContainer 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 doStart() throws Exception
doStart
in class org.mortbay.component.AbstractLifeCycle
Exception
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.