public interface ResourceDefinition
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. |
default 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.)
|
default 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 |
isOrderedChild()
Whether this is an ordered child or not
|
boolean |
isRuntime() |
void |
registerAttributes(ManagementResourceRegistration resourceRegistration)
Register operations associated with this resource.
|
default 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.
|
PathElement getPathElement()
null
if this is a definition of a root resource.null
if this is a definition of a root resource.DescriptionProvider getDescriptionProvider(ImmutableManagementResourceRegistration resourceRegistration)
DescriptionProvider
for the given resource.resourceRegistration
- the resource. Cannot be null
null
void registerOperations(ManagementResourceRegistration resourceRegistration)
resourceRegistration
- a ManagementResourceRegistration
created from this definitionvoid registerAttributes(ManagementResourceRegistration resourceRegistration)
resourceRegistration
- a ManagementResourceRegistration
created from this definitionvoid registerNotifications(ManagementResourceRegistration resourceRegistration)
resourceRegistration
- a ManagementResourceRegistration
created from this definitionvoid registerChildren(ManagementResourceRegistration resourceRegistration)
resourceRegistration
- a ManagementResourceRegistration
created from this definitiondefault void registerCapabilities(ManagementResourceRegistration resourceRegistration)
resourceRegistration
- a ManagementResourceRegistration
created from this definitionList<AccessConstraintDefinition> getAccessConstraints()
null
.boolean isRuntime()
boolean isOrderedChild()
true
if this child is ordered within the parent, false otherwisedefault int getMaxOccurs()
default int getMinOccurs()
Copyright © 2023 JBoss by Red Hat. All rights reserved.