[
http://jira.jboss.com/jira/browse/JBMICROCONT-252?page=all ]
Scott M Stark resolved JBMICROCONT-252.
---------------------------------------
Resolution: Done
public class DeploymentTemplateInfoFactory
{
/**
* Create a DeploymentTemplateInfo from the ManagedObject view. This is
* based on locating the ManagedPropertys with a ManagementProperty
* annotation with a includeInTemplate=true field.
* @param mo - the ManagedObject for the deployment template
* @param name - the name of the deployment template
* @param description - a description of the deployment template
* @return a DeploymentTemplateInfo containing the template properties.
*/
public DeploymentTemplateInfo createTemplateInfo(ManagedObject mo, String name,
String description)
/**
* Create a DeploymentTemplateInfo by scanning the metadata attachment
* class for ManagementProperty annotations.
* @param attachmentClass - the metadata class to scan for ManagementProperty
annotations
* @param name - the template name
* @param description - the template description
* @return the DeploymentTemplateInfo instance
* @throws Exception on failure to create the DeploymentTemplateInfo
*/
public DeploymentTemplateInfo createTemplateInfo(Class<?> attachmentClass, String
name,
String description)
throws Exception
/**
* Create a DeploymentTemplateInfo by scanning the metadata attachment
* class for ManagementProperty annotations.
* @param infoClass - the DeploymentTemplateInfo implementation to use. Must
* have a ctor with sig (String,String,Map).
* @param attachmentClass - the metadata class to scan for ManagementProperty
annotations
* @param name - the template name
* @param description - the template description
* @return the DeploymentTemplateInfo instance
* @throws Exception on failure to create the DeploymentTemplateInfo
*/
public DeploymentTemplateInfo createTemplateInfo(Class<? extends
DeploymentTemplateInfo> infoClass,
Class<?> attachmentClass, String name,
String description)
throws Exception
Create TemplateFactory to keep ManagedComponent and Template
properties in sync
-------------------------------------------------------------------------------
Key: JBMICROCONT-252
URL:
http://jira.jboss.com/jira/browse/JBMICROCONT-252
Project: JBoss MicroContainer
Issue Type: Feature Request
Components: Management
Affects Versions: JBossMC-2.0.0.Beta10
Reporter: Scott M Stark
Assigned To: Scott M Stark
Fix For: JBossMC-2.0.0.CR1
We need a template factory plugin the builds the DeploymentTemplateInfo from the
MangedObject properties annotated with a ManagementProperty(includeInTemplate=true)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira