Package org.jboss.as.controller.registry
Class LegacyResourceDefinition
- java.lang.Object
-
- org.jboss.as.controller.registry.LegacyResourceDefinition
-
- All Implemented Interfaces:
ResourceDefinition
public class LegacyResourceDefinition extends Object implements ResourceDefinition
- Author:
- Tomaz Cerar
-
-
Constructor Summary
Constructors Constructor Description LegacyResourceDefinition(org.jboss.dmr.ModelNode modelDescription)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AccessConstraintDefinition>getAccessConstraints()Get the definition of any access constraints associated with the resource.DescriptionProvidergetDescriptionProvider(ImmutableManagementResourceRegistration resourceRegistration)Gets aDescriptionProviderfor the given resource.PathElementgetPathElement()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.booleanisOrderedChild()Whether this is an ordered child or notbooleanisRuntime()voidregisterAttributes(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, wait
-
Methods inherited from interface org.jboss.as.controller.ResourceDefinition
getMaxOccurs, getMinOccurs, isFeature, registerAdditionalRuntimePackages
-
-
-
-
Method Detail
-
getPathElement
public PathElement 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 interfaceResourceDefinition- 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
public void registerOperations(ManagementResourceRegistration resourceRegistration)
Register operations associated with this resource.- Specified by:
registerOperationsin interfaceResourceDefinition- Parameters:
resourceRegistration- aManagementResourceRegistrationcreated from this definition
-
registerNotifications
public void registerNotifications(ManagementResourceRegistration resourceRegistration)
Description copied from interface:ResourceDefinitionRegister notifications associated with this resource.- Specified by:
registerNotificationsin interfaceResourceDefinition- Parameters:
resourceRegistration- aManagementResourceRegistrationcreated from this definition
-
registerCapabilities
public void registerCapabilities(ManagementResourceRegistration resourceRegistration)
Description copied from interface:ResourceDefinitionRegister capabilities associated with this resource.- Specified by:
registerCapabilitiesin interfaceResourceDefinition- Parameters:
resourceRegistration- aManagementResourceRegistrationcreated from this definition
-
registerAttributes
public void registerAttributes(ManagementResourceRegistration resourceRegistration)
Register operations associated with this resource.- Specified by:
registerAttributesin interfaceResourceDefinition- Parameters:
resourceRegistration- aManagementResourceRegistrationcreated from this definition
-
registerChildren
public void registerChildren(ManagementResourceRegistration resourceRegistration)
Register child resources associated with this resource.- Specified by:
registerChildrenin interfaceResourceDefinition- Parameters:
resourceRegistration- aManagementResourceRegistrationcreated from this definition
-
getAccessConstraints
public List<AccessConstraintDefinition> 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
-
-