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 OperationDefinition
DEFINITION
static SchemaLocationAddHandler
INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.dmr.ModelNode
getAddSchemaLocationOperation(org.jboss.dmr.ModelNode address, String schemaUrl, String schemaLocation)
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 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 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.
-
-