org.jboss.deployers.spi.management
Interface DeploymentTemplate


public interface DeploymentTemplate

A DeploymentTemplate is a template for creating a DeploymentContext given a set of ManagedProperty representing the template properties to set in the resulting deployment. TODO: this needs to be fleshed out in terms of the various pieces, raw deployment files, ManagedObjects, etc.

Version:
$Revision$
Author:
Scott.Stark@jboss.org, Emanuel Muckenhuber

Method Summary
 org.jboss.virtual.VirtualFile applyTemplate(org.jboss.managed.api.DeploymentTemplateInfo values)
          Create a temporary deployment virtual that can be added to a profile.
 String getDeploymentName(String deploymentBaseName)
          Get a deployment name based on the base name, which checks if the name is valid and get the correct suffix for the deployers.
 org.jboss.managed.api.DeploymentTemplateInfo getInfo()
          Get the exportable representation of the properties that the template supports.
 

Method Detail

getInfo

org.jboss.managed.api.DeploymentTemplateInfo getInfo()
Get the exportable representation of the properties that the template supports.

Returns:
the external representation of the template properties.

getDeploymentName

String getDeploymentName(String deploymentBaseName)
Get a deployment name based on the base name, which checks if the name is valid and get the correct suffix for the deployers.

Parameters:
deploymentBaseName - the base name.
Returns:
the deployment name

applyTemplate

org.jboss.virtual.VirtualFile applyTemplate(org.jboss.managed.api.DeploymentTemplateInfo values)
                                            throws Exception
Create a temporary deployment virtual that can be added to a profile.

Parameters:
values - - the template ManagedProperty values
Returns:
a virtual file, which gets distributed to the server and deleted afterwards
Throws:
Exception - - thrown on any failure to create the deployment


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