JBoss Managed Parent POM 2.1.1.SP2

org.jboss.managed.plugins
Class BasicDeploymentTemplateInfo

java.lang.Object
  extended by org.jboss.managed.plugins.BasicDeploymentTemplateInfo
All Implemented Interfaces:
Serializable, DeploymentTemplateInfo

public class BasicDeploymentTemplateInfo
extends Object
implements DeploymentTemplateInfo, Serializable

A simple bean type of implementation of DeploymentTemplateInfo

Version:
$Revision: 85281 $
Author:
Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
BasicDeploymentTemplateInfo(String name, String description)
           
BasicDeploymentTemplateInfo(String name, String description, Map<String,ManagedProperty> properties)
           
 
Method Summary
 void addProperty(ManagedProperty property)
           
 DeploymentTemplateInfo copy()
          Create a deep copy of the template info.
protected  void copy(BasicDeploymentTemplateInfo copy)
           
 String getDescription()
          Information about the deployment template
 String getName()
          The name of the DeploymentTemplate this info corresponds to
 Map<String,ManagedProperty> getProperties()
          Get the template properties.
 String getRootManagedPropertyName()
          The name of the ManagedProperty in the Map map obtained from the mainDeployer.getManagedObjects(VFSDeployment) for the DeploymentTemplate this info is associated with.
 void setProperties(Map<String,ManagedProperty> properties)
           
 void setRootManagedPropertyName(String rootManagedPropertyName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicDeploymentTemplateInfo

public BasicDeploymentTemplateInfo(String name,
                                   String description)

BasicDeploymentTemplateInfo

public BasicDeploymentTemplateInfo(String name,
                                   String description,
                                   Map<String,ManagedProperty> properties)
Method Detail

getDescription

public String getDescription()
Description copied from interface: DeploymentTemplateInfo
Information about the deployment template

Specified by:
getDescription in interface DeploymentTemplateInfo
Returns:
Information about the deployment template

getName

public String getName()
Description copied from interface: DeploymentTemplateInfo
The name of the DeploymentTemplate this info corresponds to

Specified by:
getName in interface DeploymentTemplateInfo
Returns:
name of the deployment template

getRootManagedPropertyName

public String getRootManagedPropertyName()
Description copied from interface: DeploymentTemplateInfo
The name of the ManagedProperty in the Map map obtained from the mainDeployer.getManagedObjects(VFSDeployment) for the DeploymentTemplate this info is associated with.

Specified by:
getRootManagedPropertyName in interface DeploymentTemplateInfo

setRootManagedPropertyName

public void setRootManagedPropertyName(String rootManagedPropertyName)

getProperties

public Map<String,ManagedProperty> getProperties()
Description copied from interface: DeploymentTemplateInfo
Get the template properties.

Specified by:
getProperties in interface DeploymentTemplateInfo
Returns:
A name to property mapping of the properties that can be set for use by the deployment template.

setProperties

public void setProperties(Map<String,ManagedProperty> properties)

addProperty

public void addProperty(ManagedProperty property)

copy

public DeploymentTemplateInfo copy()
Description copied from interface: DeploymentTemplateInfo
Create a deep copy of the template info. This ensures any ManagedProperty objects returned in the copy do not share the same value references such that modification of the property value in the copy affects the original.

Specified by:
copy in interface DeploymentTemplateInfo
Returns:
a deep copy of the template info.

toString

public String toString()
Overrides:
toString in class Object

copy

protected void copy(BasicDeploymentTemplateInfo copy)

JBoss Managed Parent POM 2.1.1.SP2

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.