org.jboss.managed.api
Interface ManagedDeployment

All Known Implementing Classes:
ManagedDeploymentImpl

public interface ManagedDeployment

A collection of ManagedComponent and structural information about a deployment.

Version:
$Revision: 69903 $
Author:
Scott.Stark@jboss.org

Nested Class Summary
static class ManagedDeployment.DeploymentPhase
          The class of deployment
 
Method Summary
 void addComponent(String name, ManagedComponent comp)
          Add a component to this deployment
 ManagedDeployment addModule(String deplymentBaseName, DeploymentTemplateInfo info)
          Add a deployment
 boolean addType(String type)
          Add a deployment/module type
 List<ManagedDeployment> getChildren()
          Get the nested deployment modules.
 ManagedComponent getComponent(String name)
           
 Map<String,ManagedComponent> getComponents()
          Get the ManagedComponents for the deployment module.
 Set<String> getComponentTemplateNames()
          Get the DeploymentTemplate names for components that can be added to this deployment.
 ManagedDeployment.DeploymentPhase getDeploymentPhase()
          Get the phase this deployment is associated with
 Set<String> getDeploymentTemplateNames()
          Get the DeploymentTemplate names for deployments that can be added to this deployment.
 ManagedObject getManagedObject(String name)
           
 Set<String> getManagedObjectNames()
          Get the managed object names
 Map<String,ManagedObject> getManagedObjects()
           
 String getName()
          Get the full name of the associated DeploymentUnit.
 ManagedDeployment getParent()
           
 Map<String,ManagedProperty> getProperties()
          Get the properties
 ManagedProperty getProperty(String name)
          Get a property
 Set<String> getPropertyNames()
          Get the managed property names
 String getSimpleName()
          Get the simple name (x.ear) for the deployment
 Set<String> getTypes()
          Get the deployment/module types.
 boolean removeComponent(String name)
           
 void setTypes(Set<String> types)
          Get the deployment/module types.
 

Method Detail

getName

String getName()
Get the full name of the associated DeploymentUnit.

Returns:
full name of the DeploymentUnit

getSimpleName

String getSimpleName()
Get the simple name (x.ear) for the deployment

Returns:
simple name of the deployment

getDeploymentPhase

ManagedDeployment.DeploymentPhase getDeploymentPhase()
Get the phase this deployment is associated with

Returns:
the phase

addType

boolean addType(String type)
Add a deployment/module type

Parameters:
type -
Returns:
true if the type was added, false if it already exists

getTypes

Set<String> getTypes()
Get the deployment/module types.

Returns:
deployment types

setTypes

void setTypes(Set<String> types)
Get the deployment/module types.

Parameters:
types -

getPropertyNames

Set<String> getPropertyNames()
Get the managed property names

Returns:
the property names

getProperty

ManagedProperty getProperty(String name)
Get a property

Parameters:
name - the name
Returns:
the property

getProperties

Map<String,ManagedProperty> getProperties()
Get the properties

Returns:
the properties

getManagedObjectNames

Set<String> getManagedObjectNames()
Get the managed object names

Returns:
the property names

getManagedObjects

Map<String,ManagedObject> getManagedObjects()

getManagedObject

ManagedObject getManagedObject(String name)

getParent

ManagedDeployment getParent()
Returns:
the parent

getComponent

ManagedComponent getComponent(String name)

getComponents

Map<String,ManagedComponent> getComponents()
Get the ManagedComponents for the deployment module.

Returns:
ManagedComponents for the deployment module.

getChildren

List<ManagedDeployment> getChildren()
Get the nested deployment modules.

Returns:
nested deployment modules.

getComponentTemplateNames

Set<String> getComponentTemplateNames()
Get the DeploymentTemplate names for components that can be added to this deployment.

Returns:
the template names

addComponent

void addComponent(String name,
                  ManagedComponent comp)
Add a component to this deployment

Parameters:
name - the name
comp - the component

removeComponent

boolean removeComponent(String name)
Parameters:
name - the name
Returns:
true when it was removed

getDeploymentTemplateNames

Set<String> getDeploymentTemplateNames()
Get the DeploymentTemplate names for deployments that can be added to this deployment.

Returns:
the template names

addModule

ManagedDeployment addModule(String deplymentBaseName,
                            DeploymentTemplateInfo info)
Add a deployment

Parameters:
deplymentBaseName -
info -
Returns:
the deployment


Copyright © 2008 JBoss Inc.. All Rights Reserved.