public class NamespaceAddHandler extends AbstractModelUpdateHandler
Modifier and Type | Field and Description |
---|---|
static OperationDefinition |
DEFINITION |
static NamespaceAddHandler |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static org.jboss.dmr.ModelNode |
getAddNamespaceOperation(org.jboss.dmr.ModelNode address,
String prefix,
String uri) |
protected boolean |
requiresRuntime(OperationContext context)
Gets whether
AbstractModelUpdateHandler.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.
|
execute, performRuntime, rollbackRuntime, updateModel
public static final OperationDefinition DEFINITION
public static final NamespaceAddHandler INSTANCE
public static org.jboss.dmr.ModelNode getAddNamespaceOperation(org.jboss.dmr.ModelNode address, String prefix, String uri)
protected void updateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedException
AbstractModelUpdateHandler
updateModel
in class AbstractModelUpdateHandler
operation
- the operationmodel
- persistent configuration model node that corresponds to the address of operation
OperationFailedException
- if operation
is invalid or populating the model otherwise failsprotected boolean requiresRuntime(OperationContext context)
AbstractModelUpdateHandler
AbstractModelUpdateHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)
}
should be called.requiresRuntime
in class AbstractModelUpdateHandler
context
- operation contexttrue
if performRuntime
should be invoked; false
otherwise.Copyright © 2023 JBoss by Red Hat. All rights reserved.