Class Resource
- java.lang.Object
-
- org.wildfly.plugin.deployment.resource.Resource
-
public class Resource extends Object
Defines a resource.- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description Resource()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAddress()The address for the resource.Map<String,String>getProperties()The properties for the resource.Resource[]getResources()Returns an array of resources that depend on this resource.booleanisAddIfAbsent()Whether or not we should add only if the resource is absent.
-
-
-
Method Detail
-
getAddress
public String getAddress()
The address for the resource.- Returns:
- the address.
-
isAddIfAbsent
public boolean isAddIfAbsent()
Whether or not we should add only if the resource is absent.- Returns:
trueif the resource should only be added if it does not already exist, otherwisefalse.
-
getProperties
public Map<String,String> getProperties()
The properties for the resource. If no properties were defined an empty map is returned.- Returns:
- the properties.
-
getResources
public Resource[] getResources()
Returns an array of resources that depend on this resource. Note all sub-resources will be ignored if theisAddIfAbsent()is defined and his resource is already defined.- Returns:
- an array of resources that depend on this resource or
nullif there are no child resources.
-
-