Class PathResourceDefinition

All Implemented Interfaces:
Feature, ResourceDefinition, ResourceRegistration

public abstract class PathResourceDefinition extends SimpleResourceDefinition
Definition of a resource type that represents a logical filesystem path.
Author:
Kabir Khan
  • Field Details

  • Method Details

    • createResolvableSpecified

      public static PathResourceDefinition createResolvableSpecified(PathManagerService pathManager)
      Creates a resource definition for a path resource that must have the path specified, but for which the read-resource management operation should support the resolve-expresssions parameter.
      Parameters:
      pathManager - the path manager. Cannot be null
      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 the read-resource management operation should not support the resolve-expresssions parameter.
      Parameters:
      pathManager - the path manager. Cannot be null
      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 interface ResourceDefinition
      Overrides:
      registerOperations in class SimpleResourceDefinition
      Parameters:
      interfaces - a ManagementResourceRegistration 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 interface ResourceDefinition
      Overrides:
      registerAttributes in class SimpleResourceDefinition
      Parameters:
      resourceRegistration - a ManagementResourceRegistration created from this definition