Package org.jboss.as.controller.registry
Class ManagementResourceRegistration.Factory
java.lang.Object
org.jboss.as.controller.registry.ManagementResourceRegistration.Factory
- Enclosing interface:
- ManagementResourceRegistration
A factory for creating a new, root model node registration.
-
Method Summary
Modifier and TypeMethodDescriptioncreateRegistration(ResourceDefinition resourceDefinition) Create a new root model node registration.createRegistration(ResourceDefinition resourceDefinition, AccessConstraintUtilizationRegistry constraintUtilizationRegistry, CapabilityRegistry registry) Create a new root model node registration.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.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.
-
Method Details
-
forProcessType
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
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
-