|
JBoss Managed Parent POM 2.1.1.SP2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagedDeployment
A collection of ManagedComponent and structural information about a deployment.
Nested Class Summary | |
---|---|
static class |
ManagedDeployment.DeploymentPhase
Deprecated. - no replacement, to be dropped |
Method Summary | ||
---|---|---|
void |
addComponent(String name,
ManagedComponent comp)
Add a component to this deployment |
|
ManagedDeployment |
addModule(String deploymentBaseName,
DeploymentTemplateInfo info)
Add a deployment |
|
boolean |
addType(String type)
Add a deployment/module type |
|
|
getAttachment(Class<T> expectedType)
Get an attachment from the deployment, uses the expected type as both the name and to cast the resulting object. |
|
Object |
getAttachment(String name)
Get an attachment from the deployment. |
|
List<ManagedDeployment> |
getChildren()
Get the nested deployment modules. |
|
ManagedComponent |
getComponent(String name)
Gets the nested ManagedComponent with the specified name. |
|
Map<String,ManagedComponent> |
getComponents()
Get the nested 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 |
|
DeploymentState |
getDeploymentState()
Get the deployment state of the deployment. |
|
Set<String> |
getDeploymentTemplateNames()
Get the DeploymentTemplate names for deployments that can be added to this deployment. |
|
ManagedObject |
getManagedObject(String name)
Gets the child managed object with the specified name. |
|
Set<String> |
getManagedObjectNames()
Get the names of the child managed objects. |
|
Map<String,ManagedObject> |
getManagedObjects()
Gets the child managed objects. |
|
String |
getName()
Get the full name of the associated DeploymentUnit (e.g. |
|
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 (e.g. |
|
Set<String> |
getTypes()
Get the deployment/module types. |
|
boolean |
removeComponent(String name)
|
|
void |
setAttachment(String name,
Object attachment)
Set an attachment against the deployment. |
|
void |
setTypes(Set<String> types)
Get the deployment/module types. |
Method Detail |
---|
String getName()
String getSimpleName()
ManagedDeployment.DeploymentPhase getDeploymentPhase()
DeploymentState getDeploymentState()
boolean addType(String type)
type
-
Set<String> getTypes()
void setTypes(Set<String> types)
types
- Set<String> getPropertyNames()
ManagedProperty getProperty(String name)
name
- the name
Map<String,ManagedProperty> getProperties()
Set<String> getManagedObjectNames()
Map<String,ManagedObject> getManagedObjects()
ManagedObject getManagedObject(String name)
name
- the managed object name
ManagedDeployment getParent()
ManagedComponent getComponent(String name)
name
- the child component's name
Map<String,ManagedComponent> getComponents()
List<ManagedDeployment> getChildren()
Set<String> getComponentTemplateNames()
void addComponent(String name, ManagedComponent comp)
name
- the namecomp
- the componentboolean removeComponent(String name)
name
- the name
Set<String> getDeploymentTemplateNames()
ManagedDeployment addModule(String deploymentBaseName, DeploymentTemplateInfo info)
deploymentBaseName
- info
-
Object getAttachment(String name)
name
- the name
setAttachment(String, Object)
<T> T getAttachment(Class<T> expectedType)
T
- the expected typeexpectedType
- the expected type
ClassCastException
- when the object is not of the expected typevoid setAttachment(String name, Object attachment)
name
- the nameattachment
- the attachment, pass null to remove an attachment
IllegalArgumentException
- for a null name
|
JBoss Managed Parent POM 2.1.1.SP2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |