|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.services.deployment.DeploymentManager
public class DeploymentManager
Class handling JBoss module generation. Uses apache velocity for generating deployment descriptors.
Field Summary | |
---|---|
static String |
CONTEXT_HELPER
a helper object to pass in to the template |
static String |
TEMPLATE_CONFIG_FILE
the filename to look for in template subdirectories |
static String |
TEMPLATE_ERROR_PARAM
an object to pass back from the template to trigger an error |
Constructor Summary | |
---|---|
DeploymentManager(String templateDir,
String undeployDir,
String deployDir,
org.jboss.logging.Logger log)
|
Method Summary | |
---|---|
String |
createModule(String module,
String template,
HashMap properties)
|
URL |
getDeployedURL(String module)
|
List |
getTemplatePropertyInfo(String template)
Get property metadata information for a particular template |
URL |
getUndeployedURL(String module)
|
Set |
listModuleTemplates()
Return the list of available templates |
void |
moveToDeployDir(String module)
|
void |
moveToModuleDir(String module)
|
boolean |
removeModule(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 String TEMPLATE_CONFIG_FILE
public static final String TEMPLATE_ERROR_PARAM
public static final String CONTEXT_HELPER
Constructor Detail |
---|
public DeploymentManager(String templateDir, String undeployDir, String deployDir, org.jboss.logging.Logger log) throws Exception
templateDir
- the root dir where templates are storedpackageDir
- the directory to store generated packages
Exception
Method Detail |
---|
public Set listModuleTemplates()
public List getTemplatePropertyInfo(String template) throws Exception
template
-
Exception
- if the template does not existpublic String createModule(String module, String template, HashMap properties) throws Exception
Exception
public boolean removeModule(String module)
module
- the module to remove
public void moveToDeployDir(String module) throws Exception
Exception
public void moveToModuleDir(String module) throws Exception
Exception
public URL getDeployedURL(String module) throws Exception
Exception
public URL getUndeployedURL(String module) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |