|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.services.deployment.DeploymentManager
Class handling JBoss module generation. Uses apache velocity for generating deployment descriptors.
Field Summary | |
static java.lang.String |
CONTEXT_HELPER
a helper object to pass in to the template |
static java.lang.String |
TEMPLATE_CONFIG_FILE
the filename to look for in template subdirectories |
static java.lang.String |
TEMPLATE_ERROR_PARAM
an object to pass back from the template to trigger an error |
Constructor Summary | |
DeploymentManager(java.lang.String templateDir,
java.lang.String undeployDir,
java.lang.String deployDir,
Logger (src) log)
|
Method Summary | |
java.lang.String |
createModule(java.lang.String module,
java.lang.String template,
java.util.HashMap properties)
|
java.net.URL |
getDeployedURL(java.lang.String module)
|
java.util.List |
getTemplatePropertyInfo(java.lang.String template)
Get property metadata information for a particular template |
java.net.URL |
getUndeployedURL(java.lang.String module)
|
java.util.Set |
listModuleTemplates()
Return the list of available templates |
void |
moveToDeployDir(java.lang.String module)
|
void |
moveToModuleDir(java.lang.String module)
|
boolean |
removeModule(java.lang.String module)
Remove a module if exists |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TEMPLATE_CONFIG_FILE
public static final java.lang.String TEMPLATE_ERROR_PARAM
public static final java.lang.String CONTEXT_HELPER
Constructor Detail |
public DeploymentManager(java.lang.String templateDir, java.lang.String undeployDir, java.lang.String deployDir, Logger (src) log) throws java.lang.Exception
templateDir
- the root dir where templates are storedMethod Detail |
public java.util.Set listModuleTemplates()
public java.util.List getTemplatePropertyInfo(java.lang.String template) throws java.lang.Exception
template
-
java.lang.Exception
- if the template does not existpublic java.lang.String createModule(java.lang.String module, java.lang.String template, java.util.HashMap properties) throws java.lang.Exception
java.lang.Exception
public boolean removeModule(java.lang.String module)
module
- the module to remove
public void moveToDeployDir(java.lang.String module) throws java.lang.Exception
java.lang.Exception
public void moveToModuleDir(java.lang.String module) throws java.lang.Exception
java.lang.Exception
public java.net.URL getDeployedURL(java.lang.String module) throws java.lang.Exception
java.lang.Exception
public java.net.URL getUndeployedURL(java.lang.String module) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |