public class DelegatingResourceDefinition extends Object implements ResourceDefinition
| Modifier and Type | Field and Description |
|---|---|
protected ResourceDefinition |
delegate |
| Constructor and Description |
|---|
DelegatingResourceDefinition() |
| Modifier and Type | Method and Description |
|---|---|
List<AccessConstraintDefinition> |
getAccessConstraints()
Get the definition of any access constraints associated with the resource.
|
DescriptionProvider |
getDescriptionProvider(ImmutableManagementResourceRegistration resourceRegistration)
Gets a
DescriptionProvider for the given resource. |
int |
getMaxOccurs()
Gets the maximum number of times a resource of the type described by this definition
can occur under its parent resource (or, for a root resource, the minimum number of times it can
occur at all.)
|
int |
getMinOccurs()
Gets the minimum number of times a resource of the type described by this definition
can occur under its parent resource (or, for a root resource, the number of times it can
occur at all.)
|
PathElement |
getPathElement()
Gets the path element that describes how to navigate to this resource from its parent resource, or
null
if this is a definition of a root resource. |
boolean |
isFeature() |
boolean |
isOrderedChild()
Whether this is an ordered child or not
|
boolean |
isRuntime() |
void |
registerAdditionalRuntimePackages(ManagementResourceRegistration resourceRegistration)
Register "additional" Galleon packages that must be installed in order
for this Resource to function.
|
void |
registerAttributes(ManagementResourceRegistration resourceRegistration)
Register operations associated with this resource.
|
void |
registerCapabilities(ManagementResourceRegistration resourceRegistration)
Register capabilities associated with this resource.
|
void |
registerChildren(ManagementResourceRegistration resourceRegistration)
Register child resources associated with this resource.
|
void |
registerNotifications(ManagementResourceRegistration resourceRegistration)
Register notifications associated with this resource.
|
void |
registerOperations(ManagementResourceRegistration resourceRegistration)
Register operations associated with this resource.
|
protected void |
setDelegate(ResourceDefinition delegate) |
protected volatile ResourceDefinition delegate
protected void setDelegate(ResourceDefinition delegate)
public void registerOperations(ManagementResourceRegistration resourceRegistration)
ResourceDefinitionregisterOperations in interface ResourceDefinitionresourceRegistration - a ManagementResourceRegistration created from this definitionpublic void registerChildren(ManagementResourceRegistration resourceRegistration)
ResourceDefinitionregisterChildren in interface ResourceDefinitionresourceRegistration - a ManagementResourceRegistration created from this definitionpublic void registerAttributes(ManagementResourceRegistration resourceRegistration)
ResourceDefinitionregisterAttributes in interface ResourceDefinitionresourceRegistration - a ManagementResourceRegistration created from this definitionpublic void registerNotifications(ManagementResourceRegistration resourceRegistration)
ResourceDefinitionregisterNotifications in interface ResourceDefinitionresourceRegistration - a ManagementResourceRegistration created from this definitionpublic void registerCapabilities(ManagementResourceRegistration resourceRegistration)
ResourceDefinitionregisterCapabilities in interface ResourceDefinitionresourceRegistration - a ManagementResourceRegistration created from this definitionpublic void registerAdditionalRuntimePackages(ManagementResourceRegistration resourceRegistration)
ResourceDefinitionA package is "additional" if it is not one of the "standard" packages that must be installed. The names of "standard" packages should not be registered. The "standard" packages are:
RuntimePackageDependency.
RuntimePackageDependency.
RuntimePackageDependency.
RuntimePackageDependency. A passive dependency is provisioned
only if its own required dependencies are present.
registerAdditionalRuntimePackages in interface ResourceDefinitionresourceRegistration - a ManagementResourceRegistration
created from this definitionpublic boolean isFeature()
isFeature in interface ResourceDefinitionpublic int getMinOccurs()
ResourceDefinitiongetMinOccurs in interface ResourceDefinitionpublic int getMaxOccurs()
ResourceDefinitiongetMaxOccurs in interface ResourceDefinitionpublic PathElement getPathElement()
ResourceDefinitionnull
if this is a definition of a root resource.getPathElement in interface ResourceDefinitionnull if this is a definition of a root resource.public DescriptionProvider getDescriptionProvider(ImmutableManagementResourceRegistration resourceRegistration)
ResourceDefinitionDescriptionProvider for the given resource.getDescriptionProvider in interface ResourceDefinitionresourceRegistration - the resource. Cannot be nullnullpublic List<AccessConstraintDefinition> getAccessConstraints()
ResourceDefinitiongetAccessConstraints in interface ResourceDefinitionnull.public boolean isRuntime()
isRuntime in interface ResourceDefinitionpublic boolean isOrderedChild()
ResourceDefinitionisOrderedChild in interface ResourceDefinitiontrue if this child is ordered within the parent, false otherwiseCopyright © 2022 JBoss by Red Hat. All rights reserved.