Class SchemaLocationAddHandler
- java.lang.Object
-
- org.jboss.as.controller.AbstractModelUpdateHandler
-
- org.jboss.as.controller.operations.common.SchemaLocationAddHandler
-
- All Implemented Interfaces:
OperationStepHandler
public class SchemaLocationAddHandler extends AbstractModelUpdateHandler
Handler for the root resource add-schema-location operation.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static OperationDefinitionDEFINITIONstatic SchemaLocationAddHandlerINSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.dmr.ModelNodegetAddSchemaLocationOperation(org.jboss.dmr.ModelNode address, String schemaUrl, String schemaLocation)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 SchemaLocationAddHandler INSTANCE
-
-
Method Detail
-
getAddSchemaLocationOperation
public static org.jboss.dmr.ModelNode getAddSchemaLocationOperation(org.jboss.dmr.ModelNode address, String schemaUrl, String schemaLocation)
-
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.
-
-