org.mortbay.jetty.deployer
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() |
java.lang.String[] |
getConfigurationClasses() |
HandlerContainer |
getContexts() |
java.lang.String |
getDefaultsDescriptor() |
java.lang.String |
getWebAppDir() |
boolean |
isExtract() |
boolean |
isParentLoaderPriority() |
void |
scan()
Scan for webapplications.
|
void |
setAllowDuplicates(boolean allowDuplicates) |
void |
setConfigurationClasses(java.lang.String[] configurationClasses) |
void |
setContexts(HandlerContainer contexts) |
void |
setDefaultsDescriptor(java.lang.String defaultsDescriptor) |
void |
setExtract(boolean extract) |
void |
setParentLoaderPriority(boolean parentPriorityClassLoading) |
void |
setWebAppDir(java.lang.String dir) |
public java.lang.String[] getConfigurationClasses()
public void setConfigurationClasses(java.lang.String[] configurationClasses)
public HandlerContainer getContexts()
public void setContexts(HandlerContainer contexts)
public java.lang.String getDefaultsDescriptor()
public void setDefaultsDescriptor(java.lang.String defaultsDescriptor)
public boolean isExtract()
public void setExtract(boolean extract)
public boolean isParentLoaderPriority()
public void setParentLoaderPriority(boolean parentPriorityClassLoading)
public java.lang.String getWebAppDir()
public void setWebAppDir(java.lang.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 java.lang.Exception
doStart
in class org.mortbay.component.AbstractLifeCycle
java.lang.Exception
public void scan() throws java.lang.Exception
java.lang.Exception
public void doStop() throws java.lang.Exception
doStop
in class org.mortbay.component.AbstractLifeCycle
java.lang.Exception
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.