Package org.jboss.as.controller.registry
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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagementResourceRegistration
createRegistration(ResourceDefinition resourceDefinition)
Create a new root model node registration.ManagementResourceRegistration
createRegistration(ResourceDefinition resourceDefinition, AccessConstraintUtilizationRegistry constraintUtilizationRegistry, CapabilityRegistry registry)
Create a new root model node registration.static ManagementResourceRegistration.Factory
forProcessType(ProcessType processType)
Returns a ManagementResourceRegistration's Factory that will use the specifiedprocessType
and default stability level to determine whether resource metrics are registered or not.static ManagementResourceRegistration.Factory
forProcessType(ProcessType processType, Stability stability)
Returns a ManagementResourceRegistration's Factory that will use the specifiedprocessType
and stability level to determine whether resource metrics are registered or not.
-
-
-
Method Detail
-
forProcessType
public static ManagementResourceRegistration.Factory forProcessType(ProcessType processType)
Returns a ManagementResourceRegistration's Factory that will use the specifiedprocessType
and default stability level to determine whether resource metrics are registered or not. If theprocessType
idnull
, metrics are always registered.- Parameters:
processType
- can benull
- 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 specifiedprocessType
and stability level to determine whether resource metrics are registered or not. If theprocessType
idnull
, metrics are always registered.- Parameters:
processType
- can benull
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 haveImmutableManagementResourceRegistration.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 nodeconstraintUtilizationRegistry
- registry for recording access constraints. Can benull
if tracking access constraint usage is not supportedregistry
- the capability registry (can benull
)- Returns:
- the new root model node registration
- Throws:
SecurityException
- if the caller does not haveImmutableManagementResourceRegistration.ACCESS_PERMISSION
-
-