Class NamespaceAddHandler
java.lang.Object
org.jboss.as.controller.AbstractModelUpdateHandler
org.jboss.as.controller.operations.common.NamespaceAddHandler
- All Implemented Interfaces:
OperationStepHandler
Handler for the root resource add-namespace operation.
- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OperationDefinitionstatic final NamespaceAddHandler -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jboss.dmr.ModelNodegetAddNamespaceOperation(org.jboss.dmr.ModelNode address, String prefix, String uri) protected booleanrequiresRuntime(OperationContext context) Gets whetherAbstractModelUpdateHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)} should be called.protected voidupdateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) Update the given node in the persistent configuration model based on the values in the given operation.Methods inherited from class org.jboss.as.controller.AbstractModelUpdateHandler
execute, performRuntime, rollbackRuntime, updateModel
-
Field Details
-
DEFINITION
-
INSTANCE
-
-
Method Details
-
getAddNamespaceOperation
-
updateModel
protected void updateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedException Description copied from class:AbstractModelUpdateHandlerUpdate the given node in the persistent configuration model based on the values in the given operation.- Specified by:
updateModelin classAbstractModelUpdateHandler- Parameters:
operation- the operationmodel- persistent configuration model node that corresponds to the address ofoperation- Throws:
OperationFailedException- ifoperationis invalid or populating the model otherwise fails
-
requiresRuntime
Description copied from class:AbstractModelUpdateHandlerGets whetherAbstractModelUpdateHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)} should be called.- Overrides:
requiresRuntimein classAbstractModelUpdateHandler- Parameters:
context- operation context- Returns:
trueifperformRuntimeshould be invoked;falseotherwise.
-