Class ExtensionRegistry.Builder
java.lang.Object
org.jboss.as.controller.extension.ExtensionRegistry.Builder
- Enclosing class:
- ExtensionRegistry
Builder for an
ExtensionRegistry.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Constructs an extension registry.withAuditLogger(ManagedAuditLogger auditLogger) Overrides the defaultManagedAuditLoggerof the extension registry.withAuthorizer(JmxAuthorizer authorizer) Overrides the defaultJmxAuthorizerof the extension registry.withHostControllerInfoAccessor(RuntimeHostControllerInfoAccessor hostControllerInfoAccessor) Overrides the defaultRuntimeHostControllerInfoAccessorof the extension registry.withRunningMode(RunningMode mode) Convenience method for setting theRunningModeControlof the extension registry.withRunningModeControl(RunningModeControl runningModeControl) Overrides the defaultRunningModeControlof the extension registry.withSecurityIdentitySupplier(Supplier<org.wildfly.security.auth.server.SecurityIdentity> securityIdentitySupplier) Overrides the defaultSecurityIdentitysupplier of the extension registry.withStability(Stability stability) Overrides the default stability level of the extension registry.withStabilitySupplier(Supplier<Stability> stabilitySupplier) Overrides the default stability level of the extension registry.
-
Method Details
-
withRunningMode
Convenience method for setting theRunningModeControlof the extension registry.- Parameters:
mode- the running mode- Returns:
- a reference to this builder
-
withRunningModeControl
Overrides the defaultRunningModeControlof the extension registry.- Parameters:
runningModeControl- the running mode control- Returns:
- a reference to this builder
-
withAuditLogger
Overrides the defaultManagedAuditLoggerof the extension registry.- Parameters:
auditLogger- the logger for auditing changes- Returns:
- a reference to this builder
-
withAuthorizer
Overrides the defaultJmxAuthorizerof the extension registry.- Parameters:
authorizer- hook for exposing access control information to the JMX subsystem- Returns:
- a reference to this builder
-
withSecurityIdentitySupplier
public ExtensionRegistry.Builder withSecurityIdentitySupplier(Supplier<org.wildfly.security.auth.server.SecurityIdentity> securityIdentitySupplier) Overrides the defaultSecurityIdentitysupplier of the extension registry.- Parameters:
securityIdentitySupplier- supplier of a security identity- Returns:
- a reference to this builder
-
withHostControllerInfoAccessor
public ExtensionRegistry.Builder withHostControllerInfoAccessor(RuntimeHostControllerInfoAccessor hostControllerInfoAccessor) Overrides the defaultRuntimeHostControllerInfoAccessorof the extension registry.- Parameters:
hostControllerInfoAccessor- the host controller- Returns:
- a reference to this builder
-
withStability
Overrides the default stability level of the extension registry. This is a convenience method forwithStabilitySupplier(Supplier).- Parameters:
stability- the stability level to use- Returns:
- a reference to this builder
-
withStabilitySupplier
Overrides the default stability level of the extension registry.- Parameters:
stabilitySupplier- a Supplier returning the stability level- Returns:
- a reference to this builder
-
build
Constructs an extension registry.- Returns:
- a new extension registry
-