public class Resource extends Object
| Constructor and Description |
|---|
Resource()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress()
The address for the resource.
|
Commands |
getAfterAdd()
Returns the commands that should be executed after the resource is deployed.
|
Commands |
getBeforeAdd()
Returns the commands that should be executed before the resource is deployed.
|
Map<String,String> |
getProperties()
The properties for the resource.
|
Resource[] |
getResources()
Returns an array of resources that depend on this resource.
|
boolean |
hasAfterAddCommands()
Checks if there are commands that should be executed after the deployment.
|
boolean |
hasBeforeAddCommands()
Checks if there are commands that should be executed before the deployment.
|
boolean |
isAddIfAbsent()
Whether or not we should add only if the resource is absent.
|
boolean |
isEnableResource()
Whether or not the enable operation should be performed.
|
public String getAddress()
public boolean isAddIfAbsent()
true if the resource should only be added if it does not already exist, otherwise false.public Map<String,String> getProperties()
public boolean isEnableResource()
true if the enable operation should be performed, otherwise false.public Resource[] getResources()
isAddIfAbsent() is defined and his resource is already
defined.null if there are no child resources.public boolean hasBeforeAddCommands()
true if there are commands that need to be executed before the deployment, otherwise falsepublic Commands getBeforeAdd()
public boolean hasAfterAddCommands()
true if there are commands that need to be executed after the deployment, otherwise falsepublic Commands getAfterAdd()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.