public class ModelOnlyResourceDefinition extends SimpleResourceDefinition
ResourceDefinition
implementation designed for use in extensions
based on AbstractLegacyExtension
. Takes the AttributeDefinition
s provided to the constructor
and uses them to create a ModelOnlyAddStepHandler
for handling add
operations, and to
create a ModelOnlyWriteAttributeHandler
for handling write-attribute
operations. The
ModelOnlyRemoveStepHandler
is used for remove
operations.SimpleResourceDefinition.Parameters
Constructor and Description |
---|
ModelOnlyResourceDefinition(PathElement pathElement,
ResourceDescriptionResolver descriptionResolver,
AttributeDefinition... attributes) |
ModelOnlyResourceDefinition(PathElement pathElement,
ResourceDescriptionResolver descriptionResolver,
ModelOnlyAddStepHandler addStepHandler,
AttributeDefinition... attributes) |
Modifier and Type | Method and Description |
---|---|
void |
registerAttributes(ManagementResourceRegistration resourceRegistration)
Register operations associated with this resource.
|
getAccessConstraints, getDeprecationData, getDescriptionProvider, getFlagsSet, getPathElement, getResourceDescriptionResolver, isOrderedChild, isRuntime, registerAddOperation, registerAddOperation, registerCapabilities, registerChildren, registerNotifications, registerOperations, registerRemoveOperation, registerRemoveOperation, setDeprecated
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMaxOccurs, getMinOccurs
public ModelOnlyResourceDefinition(PathElement pathElement, ResourceDescriptionResolver descriptionResolver, AttributeDefinition... attributes)
public ModelOnlyResourceDefinition(PathElement pathElement, ResourceDescriptionResolver descriptionResolver, ModelOnlyAddStepHandler addStepHandler, AttributeDefinition... attributes)
public void registerAttributes(ManagementResourceRegistration resourceRegistration)
ResourceDefinition
registerAttributes
in interface ResourceDefinition
registerAttributes
in class SimpleResourceDefinition
resourceRegistration
- a ManagementResourceRegistration
created from this definitionCopyright © 2023 JBoss by Red Hat. All rights reserved.