Package org.jboss.as.controller.registry
Class LegacyResourceDefinition
- java.lang.Object
-
- org.jboss.as.controller.registry.LegacyResourceDefinition
-
- All Implemented Interfaces:
Feature
,ResourceDefinition
,ResourceRegistration
public class LegacyResourceDefinition extends Object implements ResourceDefinition
- 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.MinimalResourceDefinition
-
-
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.DescriptionProvider
getDescriptionProvider(ImmutableManagementResourceRegistration resourceRegistration)
Gets aDescriptionProvider
for the given resource.PathElement
getPathElement()
Gets the path element that describes how to navigate to this resource from its parent resource, ornull
if this is a definition of a root resource.boolean
isOrderedChild()
Whether this is an ordered child or notboolean
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.-
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.Feature
getStability
-
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, ornull
if this is a definition of a root resource.- Specified by:
getPathElement
in interfaceResourceRegistration
- Returns:
- the path element, or
null
if this is a definition of a root resource.
-
getDescriptionProvider
public DescriptionProvider getDescriptionProvider(ImmutableManagementResourceRegistration resourceRegistration)
Gets aDescriptionProvider
for the given resource.- Specified by:
getDescriptionProvider
in 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:
registerOperations
in interfaceResourceDefinition
- Parameters:
resourceRegistration
- aManagementResourceRegistration
created from this definition
-
registerNotifications
public void registerNotifications(ManagementResourceRegistration resourceRegistration)
Description copied from interface:ResourceDefinition
Register notifications associated with this resource.- Specified by:
registerNotifications
in interfaceResourceDefinition
- Parameters:
resourceRegistration
- aManagementResourceRegistration
created from this definition
-
registerCapabilities
public void registerCapabilities(ManagementResourceRegistration resourceRegistration)
Description copied from interface:ResourceDefinition
Register capabilities associated with this resource.- Specified by:
registerCapabilities
in interfaceResourceDefinition
- Parameters:
resourceRegistration
- aManagementResourceRegistration
created from this definition
-
registerAttributes
public void registerAttributes(ManagementResourceRegistration resourceRegistration)
Register operations associated with this resource.- Specified by:
registerAttributes
in interfaceResourceDefinition
- Parameters:
resourceRegistration
- aManagementResourceRegistration
created from this definition
-
registerChildren
public void registerChildren(ManagementResourceRegistration resourceRegistration)
Register child resources associated with this resource.- Specified by:
registerChildren
in interfaceResourceDefinition
- Parameters:
resourceRegistration
- aManagementResourceRegistration
created from this definition
-
getAccessConstraints
public List<AccessConstraintDefinition> getAccessConstraints()
Get the definition of any access constraints associated with the resource.- Specified by:
getAccessConstraints
in interfaceResourceDefinition
- Returns:
- this default implementation simply returns an empty list.
-
isRuntime
public boolean isRuntime()
- Specified by:
isRuntime
in interfaceResourceDefinition
- Returns:
- true if resource is runtime
-
isOrderedChild
public boolean isOrderedChild()
Description copied from interface:ResourceDefinition
Whether this is an ordered child or not- Specified by:
isOrderedChild
in interfaceResourceDefinition
- Returns:
true
if this child is ordered within the parent, false otherwise
-
-