public class SchemaLocationAddHandler extends AbstractModelUpdateHandler
Modifier and Type | Field and Description |
---|---|
static OperationDefinition |
DEFINITION |
static SchemaLocationAddHandler |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static org.jboss.dmr.ModelNode |
getAddSchemaLocationOperation(org.jboss.dmr.ModelNode address,
String schemaUrl,
String schemaLocation) |
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 SchemaLocationAddHandler INSTANCE
public static org.jboss.dmr.ModelNode getAddSchemaLocationOperation(org.jboss.dmr.ModelNode address, String schemaUrl, String schemaLocation)
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.