Class NamespaceAddHandler
- java.lang.Object
-
- org.jboss.as.controller.AbstractModelUpdateHandler
-
- org.jboss.as.controller.operations.common.NamespaceAddHandler
-
- All Implemented Interfaces:
OperationStepHandler
public class NamespaceAddHandler extends AbstractModelUpdateHandler
Handler for the root resource add-namespace operation.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static OperationDefinitionDEFINITIONstatic NamespaceAddHandlerINSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
DEFINITION
public static final OperationDefinition DEFINITION
-
INSTANCE
public static final NamespaceAddHandler INSTANCE
-
-
Method Detail
-
getAddNamespaceOperation
public static org.jboss.dmr.ModelNode getAddNamespaceOperation(org.jboss.dmr.ModelNode address, String prefix, String uri)
-
updateModel
protected void updateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedExceptionDescription 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
protected boolean requiresRuntime(OperationContext context)
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.
-
-