Package org.jboss.as.controller.registry
Class LegacyResourceDefinition
java.lang.Object
org.jboss.as.controller.registry.LegacyResourceDefinition
- All Implemented Interfaces:
Feature,ResourceDefinition,ResourceRegistration
- Author:
- Tomaz Cerar
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.ResourceDefinition
ResourceDefinition.AbstractConfigurator<C extends ResourceDefinition.Configurator<C>>, ResourceDefinition.Builder, ResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>, ResourceDefinition.MinimalBuilder, ResourceDefinition.MinimalResourceDefinitionNested classes/interfaces inherited from interface org.jboss.as.controller.ResourceRegistration
ResourceRegistration.DefaultResourceRegistration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the definition of any access constraints associated with the resource.getDescriptionProvider(ImmutableManagementResourceRegistration resourceRegistration) Gets aDescriptionProviderfor the given resource.Gets the path element that describes how to navigate to this resource from its parent resource, ornullif this is a definition of a root resource.booleanWhether this is an ordered child or notbooleanvoidregisterAttributes(ManagementResourceRegistration resourceRegistration) Register operations associated with this resource.voidregisterCapabilities(ManagementResourceRegistration resourceRegistration) Register capabilities associated with this resource.voidregisterChildren(ManagementResourceRegistration resourceRegistration) Register child resources associated with this resource.voidregisterNotifications(ManagementResourceRegistration resourceRegistration) Register notifications associated with this resource.voidregisterOperations(ManagementResourceRegistration resourceRegistration) Register operations associated with this resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.controller.Feature
getStabilityMethods inherited from interface org.jboss.as.controller.ResourceDefinition
getMaxOccurs, getMinOccurs, isFeature, registerAdditionalRuntimePackages
-
Constructor Details
-
LegacyResourceDefinition
public LegacyResourceDefinition(org.jboss.dmr.ModelNode modelDescription)
-
-
Method Details
-
getPathElement
Gets the path element that describes how to navigate to this resource from its parent resource, ornullif this is a definition of a root resource.- Specified by:
getPathElementin interfaceResourceRegistration- Returns:
- the path element, or
nullif this is a definition of a root resource.
-
getDescriptionProvider
public DescriptionProvider getDescriptionProvider(ImmutableManagementResourceRegistration resourceRegistration) Gets aDescriptionProviderfor the given resource.- Specified by:
getDescriptionProviderin interfaceResourceDefinition- Parameters:
resourceRegistration- the resource. Cannot benull- Returns:
- the description provider. Will not be
null
-
registerOperations
Register operations associated with this resource.- Specified by:
registerOperationsin interfaceResourceDefinition- Parameters:
resourceRegistration- aManagementResourceRegistrationcreated from this definition
-
registerNotifications
Description copied from interface:ResourceDefinitionRegister notifications associated with this resource.- Specified by:
registerNotificationsin interfaceResourceDefinition- Parameters:
resourceRegistration- aManagementResourceRegistrationcreated from this definition
-
registerCapabilities
Description copied from interface:ResourceDefinitionRegister capabilities associated with this resource.- Specified by:
registerCapabilitiesin interfaceResourceDefinition- Parameters:
resourceRegistration- aManagementResourceRegistrationcreated from this definition
-
registerAttributes
Register operations associated with this resource.- Specified by:
registerAttributesin interfaceResourceDefinition- Parameters:
resourceRegistration- aManagementResourceRegistrationcreated from this definition
-
registerChildren
Register child resources associated with this resource.- Specified by:
registerChildrenin interfaceResourceDefinition- Parameters:
resourceRegistration- aManagementResourceRegistrationcreated from this definition
-
getAccessConstraints
Get the definition of any access constraints associated with the resource.- Specified by:
getAccessConstraintsin interfaceResourceDefinition- Returns:
- this default implementation simply returns an empty list.
-
isRuntime
public boolean isRuntime()- Specified by:
isRuntimein interfaceResourceDefinition- Returns:
- true if resource is runtime
-
isOrderedChild
public boolean isOrderedChild()Description copied from interface:ResourceDefinitionWhether this is an ordered child or not- Specified by:
isOrderedChildin interfaceResourceDefinition- Returns:
trueif this child is ordered within the parent, false otherwise
-