站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 varia API Documentation 英文版文档

DeploymentManager (Various API) - JBoss 4.0.1 sp1 varia API Documentation 英文版文档


org.jboss.services.deployment
Class DeploymentManager

java.lang.Object
  extended byorg.jboss.services.deployment.DeploymentManager

public class DeploymentManager
extends Object

Class handling JBoss module generation. Uses apache velocity for generating deployment descriptors.

Version:
$Revision: 1.1.4.1 $
Author:
Dimitris Andreadis

Field Summary
static String TEMPLATE_CONFIG_FILE
          the filename to look for in template subdirectories
static String TEMPLATE_ERROR_PARAM
           
 
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)
           
 void removeModule(String module)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPLATE_CONFIG_FILE

public static final String TEMPLATE_CONFIG_FILE
the filename to look for in template subdirectories

See Also:
Constant Field Values

TEMPLATE_ERROR_PARAM

public static final String TEMPLATE_ERROR_PARAM
See Also:
Constant Field Values
Constructor Detail

DeploymentManager

public DeploymentManager(String templateDir,
                         String undeployDir,
                         String deployDir,
                         org.jboss.logging.Logger log)
                  throws Exception
Parameters:
templateDir - the root dir where templates are stored
Method Detail

listModuleTemplates

public Set listModuleTemplates()
Return the list of available templates


getTemplatePropertyInfo

public List getTemplatePropertyInfo(String template)
                             throws Exception
Get property metadata information for a particular template

Parameters:
template -
Returns:
list with PropertyInfo objects associated with the template
Throws:
Exception - if the template does not exist

createModule

public String createModule(String module,
                           String template,
                           HashMap properties)
                    throws Exception
Throws:
Exception

removeModule

public void removeModule(String module)
                  throws Exception
Throws:
Exception

moveToDeployDir

public void moveToDeployDir(String module)
                     throws Exception
Throws:
Exception

moveToModuleDir

public void moveToModuleDir(String module)
                     throws Exception
Throws:
Exception

getDeployedURL

public URL getDeployedURL(String module)
                   throws Exception
Throws:
Exception

getUndeployedURL

public URL getUndeployedURL(String module)
                     throws Exception
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.