public class AdditionalInitialization extends AdditionalParsers
| Constructor and Description |
|---|
AdditionalInitialization() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtraServices(org.jboss.msc.service.ServiceTarget target)
Adds extra services to the service controller
|
protected ControllerInitializer |
createControllerInitializer()
Creates the controller initializer.
|
protected ModelDescriptionValidator.ValidationConfiguration |
getModelValidationConfiguration()
Create a registry for extra configuration that should be taken into account when validating the description providers for the subsystem
in the controller.
|
protected ProcessType |
getProcessType() |
protected RunningMode |
getRunningMode() |
protected OperationContext.Type |
getType()
Return
OperationContext.Type#MANAGEMENT to only affect the model from your tested operations, and thus avoid installing services into the service controller. |
protected void |
initializeExtraSubystemsAndModel(ExtensionRegistry extensionRegistry,
Resource rootResource,
ManagementResourceRegistration rootRegistration)
Allows extra initialization of the model and addition of extra subsystems
|
protected boolean |
isValidateOperations()
Return
true to validate operations against their description provider when executing in the controller. |
protected void |
setupController(ControllerInitializer controllerInitializer)
Allows easy initialization of commonly used parts of the model and invocation of associated boottime operations
|
addParsersprotected OperationContext.Type getType()
OperationContext.Type#MANAGEMENT to only affect the model from your tested operations, and thus avoid installing services into the service controller.
Return OperationContext.Type#SERVER to install services, this is the default.protected ProcessType getProcessType()
protected RunningMode getRunningMode()
protected boolean isValidateOperations()
true to validate operations against their description provider when executing in the controller. The default is
falseprotected ModelDescriptionValidator.ValidationConfiguration getModelValidationConfiguration()
null to not validate the description providers.protected ControllerInitializer createControllerInitializer()
protected void setupController(ControllerInitializer controllerInitializer)
controllerInitializer - the controller initializerprotected void addExtraServices(org.jboss.msc.service.ServiceTarget target)
target - the service controller targetprotected void initializeExtraSubystemsAndModel(ExtensionRegistry extensionRegistry, Resource rootResource, ManagementResourceRegistration rootRegistration)
extensionRegistry - allows installation of extra subsystem extensions, call ExtensionRegistry.getExtensionContext(String)
and then Extension.initialize(extensionContext) for each extra extension you haverootResource - the root model resource which allows you to for example add child elements to the modelrootRegistration - the root resource registration which allows you to for example add additional operations to the modelCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.