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 OperationDefinition
DEFINITION
static NamespaceAddHandler
INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.dmr.ModelNode
getAddNamespaceOperation(org.jboss.dmr.ModelNode address, String prefix, String uri)
protected boolean
requiresRuntime(OperationContext context)
Gets whetherAbstractModelUpdateHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)
} should be called.protected void
updateModel(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 OperationFailedException
Description copied from class:AbstractModelUpdateHandler
Update the given node in the persistent configuration model based on the values in the given operation.- Specified by:
updateModel
in classAbstractModelUpdateHandler
- Parameters:
operation
- the operationmodel
- persistent configuration model node that corresponds to the address ofoperation
- Throws:
OperationFailedException
- ifoperation
is invalid or populating the model otherwise fails
-
requiresRuntime
protected boolean requiresRuntime(OperationContext context)
Description copied from class:AbstractModelUpdateHandler
Gets whetherAbstractModelUpdateHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)
} should be called.- Overrides:
requiresRuntime
in classAbstractModelUpdateHandler
- Parameters:
context
- operation context- Returns:
true
ifperformRuntime
should be invoked;false
otherwise.
-
-