Class PathResourceDefinition
- java.lang.Object
-
- org.jboss.as.controller.SimpleResourceDefinition
-
- org.jboss.as.controller.services.path.PathResourceDefinition
-
- All Implemented Interfaces:
ResourceDefinition
public abstract class PathResourceDefinition extends SimpleResourceDefinition
Definition of a resource type that represents a logical filesystem path.- Author:
- Kabir Khan
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.as.controller.SimpleResourceDefinition
SimpleResourceDefinition.Parameters
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleAttributeDefinition
PATH
A path attribute definitionstatic PathElement
PATH_ADDRESS
static RuntimeCapability<Void>
PATH_CAPABILITY
static SimpleAttributeDefinition
RELATIVE_TO
A relative-to attribute definition
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PathResourceDefinition
createNamed()
Creates a resource definition for a path resource that does not require that the path details be specified.static PathResourceDefinition
createResolvableSpecified(PathManagerService pathManager)
Creates a resource definition for a path resource that must have the path specified, but for which theread-resource
management operation should support theresolve-expresssions
parameter.static PathResourceDefinition
createSpecified(PathManagerService pathManager)
Creates a resource definition for a path resource that must have the path specified, but for which theread-resource
management operation should not support theresolve-expresssions
parameter.static PathResourceDefinition
createSpecifiedNoServices()
Creates a resource definition for a path resource that must have the path specified, but for which interaction with the path manager should not be part of the execution of management operations.void
registerAttributes(ManagementResourceRegistration resourceRegistration)
Register operations associated with this resource.void
registerOperations(ManagementResourceRegistration interfaces)
Register operations associated with this resource.-
Methods inherited from class org.jboss.as.controller.SimpleResourceDefinition
getAccessConstraints, getDeprecationData, getDescriptionProvider, getFlagsSet, getMaxOccurs, getMinOccurs, getPathElement, getResourceDescriptionResolver, isFeature, isOrderedChild, isRuntime, registerAdditionalRuntimePackages, registerAddOperation, registerAddOperation, registerCapabilities, registerChildren, registerNotifications, registerRemoveOperation, registerRemoveOperation, setDeprecated
-
-
-
-
Field Detail
-
PATH_CAPABILITY
public static final RuntimeCapability<Void> PATH_CAPABILITY
-
PATH_ADDRESS
public static final PathElement PATH_ADDRESS
-
PATH
public static final SimpleAttributeDefinition PATH
A path attribute definition
-
RELATIVE_TO
public static final SimpleAttributeDefinition RELATIVE_TO
A relative-to attribute definition
-
-
Method Detail
-
createResolvableSpecified
public static PathResourceDefinition createResolvableSpecified(PathManagerService pathManager)
Creates a resource definition for a path resource that must have the path specified, but for which theread-resource
management operation should support theresolve-expresssions
parameter.- Parameters:
pathManager
- the path manager. Cannot benull
- Returns:
- the resource definition
-
createSpecified
public static PathResourceDefinition createSpecified(PathManagerService pathManager)
Creates a resource definition for a path resource that must have the path specified, but for which theread-resource
management operation should not support theresolve-expresssions
parameter.- Parameters:
pathManager
- the path manager. Cannot benull
- Returns:
- the resource definition
-
createNamed
public static PathResourceDefinition createNamed()
Creates a resource definition for a path resource that does not require that the path details be specified. Interaction with the path manager will not be part of the execution of management operations. Only for use by the kernel.- Returns:
- the resource definition
-
createSpecifiedNoServices
public static PathResourceDefinition createSpecifiedNoServices()
Creates a resource definition for a path resource that must have the path specified, but for which interaction with the path manager should not be part of the execution of management operations. Only for use by the kernel.- Returns:
- the resource definition
-
registerOperations
public void registerOperations(ManagementResourceRegistration interfaces)
Description copied from class:SimpleResourceDefinition
Register operations associated with this resource. Registers an add operation handler or a remove operation handler if one was provided to the constructor.- Specified by:
registerOperations
in interfaceResourceDefinition
- Overrides:
registerOperations
in classSimpleResourceDefinition
- Parameters:
interfaces
- aManagementResourceRegistration
created from this definition
-
registerAttributes
public void registerAttributes(ManagementResourceRegistration resourceRegistration)
Description copied from interface:ResourceDefinition
Register operations associated with this resource.- Specified by:
registerAttributes
in interfaceResourceDefinition
- Overrides:
registerAttributes
in classSimpleResourceDefinition
- Parameters:
resourceRegistration
- aManagementResourceRegistration
created from this definition
-
-