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 ManagementResourceRegistrationcreateRegistration(ResourceDefinition resourceDefinition)Create a new root model node registration.ManagementResourceRegistrationcreateRegistration(ResourceDefinition resourceDefinition, AccessConstraintUtilizationRegistry constraintUtilizationRegistry, CapabilityRegistry registry)Create a new root model node registration.static ManagementResourceRegistration.FactoryforProcessType(ProcessType processType)Returns a ManagementResourceRegistration's Factory that will use the specifiedprocessTypeand default stability level to determine whether resource metrics are registered or not.static ManagementResourceRegistration.FactoryforProcessType(ProcessType processType, Stability stability)Returns a ManagementResourceRegistration's Factory that will use the specifiedprocessTypeand 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 specifiedprocessTypeand default stability level to determine whether resource metrics are registered or not. If theprocessTypeidnull, 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 specifiedprocessTypeand stability level to determine whether resource metrics are registered or not. If theprocessTypeidnull, metrics are always registered.- Parameters:
processType- can benullstability- 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 benullif 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
-
-