Class ManagementResourceRegistration.Factory

java.lang.Object
org.jboss.as.controller.registry.ManagementResourceRegistration.Factory
Enclosing interface:
ManagementResourceRegistration

public static class ManagementResourceRegistration.Factory extends Object
A factory for creating a new, root model node registration.
  • Method Details

    • forProcessType

      public static ManagementResourceRegistration.Factory forProcessType(ProcessType processType)
      Returns a ManagementResourceRegistration's Factory that will use the specified processType and default stability level to determine whether resource metrics are registered or not. If the processType id null, metrics are always registered.
      Parameters:
      processType - can be null
      Returns:
      a Factory which creates ManagementResourceRegistration that dynamically determine whether resource metrics are actually registered
    • forProcessType

      public static ManagementResourceRegistration.Factory forProcessType(ProcessType processType, Stability stability)
      Returns a ManagementResourceRegistration's Factory that will use the specified processType and stability level to determine whether resource metrics are registered or not. If the processType id null, metrics are always registered.
      Parameters:
      processType - can be null
      stability - a stability level
      Returns:
      a Factory which creates ManagementResourceRegistration that dynamically determine whether resource metrics are actually registered
    • createRegistration

      public ManagementResourceRegistration createRegistration(ResourceDefinition resourceDefinition)
      Create a new root model node registration.
      Parameters:
      resourceDefinition - the facotry for the model description provider for the root model node
      Returns:
      the new root model node registration
      Throws:
      SecurityException - if the caller does not have ImmutableManagementResourceRegistration.ACCESS_PERMISSION
    • createRegistration

      public ManagementResourceRegistration createRegistration(ResourceDefinition resourceDefinition, AccessConstraintUtilizationRegistry constraintUtilizationRegistry, CapabilityRegistry registry)
      Create a new root model node registration.
      Parameters:
      resourceDefinition - the facotry for the model description provider for the root model node
      constraintUtilizationRegistry - registry for recording access constraints. Can be null if tracking access constraint usage is not supported
      registry - the capability registry (can be null)
      Returns:
      the new root model node registration
      Throws:
      SecurityException - if the caller does not have ImmutableManagementResourceRegistration.ACCESS_PERMISSION