@Deprecated public static class WriteAttributeHandlers.WriteAttributeOperationHandler extends Object implements OperationStepHandler
Modifier and Type | Field and Description |
---|---|
static WriteAttributeHandlers.WriteAttributeOperationHandler |
INSTANCE
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
WriteAttributeHandlers.WriteAttributeOperationHandler()
Deprecated.
Creates a WriteAttributeOperationHandler that doesn't validate values.
|
protected |
WriteAttributeHandlers.WriteAttributeOperationHandler(ParameterValidator valueValidator)
Deprecated.
Creates a WriteAttributeOperationHandler that users the given
valueValidator
to validate values before applying them to the model. |
Modifier and Type | Method and Description |
---|---|
void |
execute(OperationContext context,
org.jboss.dmr.ModelNode operation)
Deprecated.
Execute this step.
|
protected void |
modelChanged(OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode newValue,
org.jboss.dmr.ModelNode currentValue)
Deprecated.
Notification that the model has been changed.
|
protected void |
validateValue(String name,
org.jboss.dmr.ModelNode value)
Deprecated.
If a validator was passed to the constructor, uses it to validate the value.
|
public static WriteAttributeHandlers.WriteAttributeOperationHandler INSTANCE
protected WriteAttributeHandlers.WriteAttributeOperationHandler()
protected WriteAttributeHandlers.WriteAttributeOperationHandler(ParameterValidator valueValidator)
valueValidator
to validate values before applying them to the model.public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
OperationStepHandler
context.getFailureDescription()
must be called, before calling one of the
context.completeStep variants
,
or an OperationFailedException
must be thrown.
If the operation succeeded, context.getResult()
should
be called and the result populated with the outcome, after which one of the
context.completeStep variants
must be called.
When this method is invoked the thread context classloader
will
be set to be the defining class loader of the class that implements this interface.
execute
in interface OperationStepHandler
context
- the operation contextoperation
- the operation being executedOperationFailedException
- if the operation failed before calling context.completeStep()
protected void validateValue(String name, org.jboss.dmr.ModelNode value) throws OperationFailedException
name
- the name of the attributevalue
- the value to validateOperationFailedException
protected void modelChanged(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode currentValue) throws OperationFailedException
context.completeStep variants
is invoked or an OperationFailedException
is thrown.context
- the context of the operationoperation
- the operationattributeName
- the name of the attribute being modifiednewValue
- the new value for the attributecurrentValue
- the existing value for the attributeOperationFailedException
Copyright © 2013 JBoss by Red Hat. All rights reserved.