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. |
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 |
isOrderedChild()
Whether this is an ordered child or not
|
boolean |
isRuntime() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMaxOccurs, getMinOccurs
protected volatile ResourceDefinition delegate
protected void setDelegate(ResourceDefinition delegate)
public void registerOperations(ManagementResourceRegistration resourceRegistration)
ResourceDefinition
registerOperations
in interface ResourceDefinition
resourceRegistration
- a ManagementResourceRegistration
created from this definitionpublic void registerChildren(ManagementResourceRegistration resourceRegistration)
ResourceDefinition
registerChildren
in interface ResourceDefinition
resourceRegistration
- a ManagementResourceRegistration
created from this definitionpublic void registerAttributes(ManagementResourceRegistration resourceRegistration)
ResourceDefinition
registerAttributes
in interface ResourceDefinition
resourceRegistration
- a ManagementResourceRegistration
created from this definitionpublic void registerNotifications(ManagementResourceRegistration resourceRegistration)
ResourceDefinition
registerNotifications
in interface ResourceDefinition
resourceRegistration
- a ManagementResourceRegistration
created from this definitionpublic void registerCapabilities(ManagementResourceRegistration resourceRegistration)
ResourceDefinition
registerCapabilities
in interface ResourceDefinition
resourceRegistration
- a ManagementResourceRegistration
created from this definitionpublic PathElement getPathElement()
ResourceDefinition
null
if this is a definition of a root resource.getPathElement
in interface ResourceDefinition
null
if this is a definition of a root resource.public DescriptionProvider getDescriptionProvider(ImmutableManagementResourceRegistration resourceRegistration)
ResourceDefinition
DescriptionProvider
for the given resource.getDescriptionProvider
in interface ResourceDefinition
resourceRegistration
- the resource. Cannot be null
null
public List<AccessConstraintDefinition> getAccessConstraints()
ResourceDefinition
getAccessConstraints
in interface ResourceDefinition
null
.public boolean isRuntime()
isRuntime
in interface ResourceDefinition
public boolean isOrderedChild()
ResourceDefinition
isOrderedChild
in interface ResourceDefinition
true
if this child is ordered within the parent, false otherwiseCopyright © 2023 JBoss by Red Hat. All rights reserved.