|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.enunciate.modules.BasicDeploymentModule
org.codehaus.enunciate.modules.FreemarkerDeploymentModule
org.codehaus.enunciate.modules.BasicAppModule
public class BasicAppModule
The basic app deployment module produces the web app for hosting the API endpoints and documentation.
The "generate" step generates the deployment descriptors and config files. Refer to user guide to learn how to customize the deployment descriptors and config files.
The "compile" step compiles all API source files, including the source files that were generated from other modules (e.g. JAX-WS Support module, GWT module, AMF module, etc.).
The "build" step assembles all the generated artifacts, compiled classes, and deployment descriptors into a directory.
Refer to user guide to learn how to customize the deployment descriptors and config files.
The "package" step packages the expanded war and exports it.
The configuration for the basic app deployment module is defined entirely in the core Enunciate configuration. Refer to user guide to learn how to customize the deployment descriptors and config files.
The spring app deployment module exports the following artifacts:
| Field Summary |
|---|
| Fields inherited from class org.codehaus.enunciate.modules.BasicDeploymentModule |
|---|
enunciate |
| Constructor Summary | |
|---|---|
BasicAppModule()
|
|
| Method Summary | |
|---|---|
protected void |
copyPostBase()
Copy the post base. |
protected void |
copyPreBase()
Copy the pre base. |
protected void |
doBuild()
Default implementation is a no-op. |
protected void |
doCompile()
Default implementation is a no-op. |
void |
doFreemarkerGenerate()
Generate using Freemarker. |
protected void |
doLibCopy()
Copies the classpath elements to WEB-INF. |
protected void |
doPackage()
Default implementation is a no-op. |
protected void |
generateWebXml()
generates web.xml to WEB-INF. |
java.io.File |
getBuildDir()
The build directory for this module. |
org.apache.commons.digester.RuleSet |
getConfigurationRules()
Default implementation returns null. |
protected java.net.URL |
getMergeWebXmlTemplateURL()
|
java.lang.String |
getName()
The name of the deployment module. |
int |
getOrder()
The order of execution for the deployment module. |
Validator |
getValidator()
Get the validator for this module, or null if none. |
java.io.File |
getWarFile()
The war file to create. |
WebAppConfig |
getWebAppConfig()
|
protected java.net.URL |
getWebXmlTemplateURL()
|
void |
init(Enunciate enunciate)
Sets the enunciate mechanism. |
boolean |
isDisabled()
Whether this deployment module has been disabled, e.g. |
protected boolean |
knownExclude(java.io.File file)
Whether to exclude a file from copying to the WEB-INF/lib directory. |
protected org.w3c.dom.Document |
loadMergeXml(java.io.InputStream inputStream)
Loads the node model for merging xml. |
| Methods inherited from class org.codehaus.enunciate.modules.FreemarkerDeploymentModule |
|---|
close, doGenerate, getConfiguration, getModel, getModelInternal, getObjectWrapper, getTemplateExceptionHandler, getTemplateLoader, initModel, processTemplate, processTemplate, processTemplate, processTemplate |
| Methods inherited from class org.codehaus.enunciate.modules.BasicDeploymentModule |
|---|
debug, getAliases, getCompileDir, getEnunciate, getGenerateDir, getPackageDir, info, setBuildDir, setCompileDir, setDisabled, setGenerateDir, setPackageDir, step, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicAppModule()
| Method Detail |
|---|
public java.lang.String getName()
DeploymentModule
getName in interface DeploymentModulegetName in class BasicDeploymentModuleprotected java.net.URL getWebXmlTemplateURL()
protected java.net.URL getMergeWebXmlTemplateURL()
public void init(Enunciate enunciate)
throws EnunciateException
BasicDeploymentModule
init in interface DeploymentModuleinit in class BasicDeploymentModuleenunciate - The enunciate mechanism.
EnunciateException
public void doFreemarkerGenerate()
throws EnunciateException,
java.io.IOException,
freemarker.template.TemplateException
FreemarkerDeploymentModuleFreemarkerDeploymentModule.doGenerate() but can throw a TemplateException.
doFreemarkerGenerate in class FreemarkerDeploymentModuleEnunciateException
java.io.IOException
freemarker.template.TemplateException
protected void doCompile()
throws EnunciateException,
java.io.IOException
BasicDeploymentModule
doCompile in class BasicDeploymentModuleEnunciateException
java.io.IOException
protected void doBuild()
throws java.io.IOException,
EnunciateException
BasicDeploymentModule
doBuild in class BasicDeploymentModulejava.io.IOException
EnunciateException
protected void copyPostBase()
throws java.io.IOException
java.io.IOException
protected void copyPreBase()
throws java.io.IOException
java.io.IOException
protected void generateWebXml()
throws java.io.IOException,
EnunciateException
java.io.IOException
EnunciateException
protected org.w3c.dom.Document loadMergeXml(java.io.InputStream inputStream)
throws EnunciateException
inputStream - The input stream of the xml.
EnunciateException
protected void doLibCopy()
throws java.io.IOException
java.io.IOException
protected void doPackage()
throws EnunciateException,
java.io.IOException
BasicDeploymentModule
doPackage in class BasicDeploymentModuleEnunciateException
java.io.IOExceptionpublic java.io.File getWarFile()
protected boolean knownExclude(java.io.File file)
throws java.io.IOException
file - The file to exclude.
java.io.IOExceptionpublic int getOrder()
DeploymentModule
getOrder in interface DeploymentModulegetOrder in class BasicDeploymentModulepublic org.apache.commons.digester.RuleSet getConfigurationRules()
BasicDeploymentModule
getConfigurationRules in interface DeploymentModulegetConfigurationRules in class BasicDeploymentModulepublic Validator getValidator()
DeploymentModule
getValidator in interface DeploymentModulegetValidator in class BasicDeploymentModulepublic WebAppConfig getWebAppConfig()
public boolean isDisabled()
DeploymentModule
isDisabled in interface DeploymentModuleisDisabled in class BasicDeploymentModulepublic java.io.File getBuildDir()
BasicDeploymentModule
getBuildDir in class BasicDeploymentModule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||