Class AbstractOperationTransformer
java.lang.Object
org.jboss.as.controller.transform.AbstractOperationTransformer
- All Implemented Interfaces:
OperationResultTransformer,OperationTransformer
public abstract class AbstractOperationTransformer
extends Object
implements OperationTransformer, OperationResultTransformer
Base class for
OperationTransformer implementations, which don't need to transform the operation result.- Author:
- Emanuel Muckenhuber
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.transform.OperationTransformer
OperationTransformer.TransformedOperation -
Field Summary
Fields inherited from interface org.jboss.as.controller.transform.OperationResultTransformer
ORIGINAL_RESULTFields inherited from interface org.jboss.as.controller.transform.OperationTransformer
DEFAULT, DEFAULT_REJECTION_POLICY, DISCARD, SUCCESSFUL_RESULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.jboss.dmr.ModelNodetransform(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation) Transform the operation only.transformOperation(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation) Transform the operation.org.jboss.dmr.ModelNodetransformResult(org.jboss.dmr.ModelNode result) Transform the operation result.
-
Constructor Details
-
AbstractOperationTransformer
public AbstractOperationTransformer()
-
-
Method Details
-
transform
protected abstract org.jboss.dmr.ModelNode transform(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation) Transform the operation only.- Parameters:
context- the transformation contextaddress- the operation addressoperation- the original operation- Returns:
- the transformed operation
-
transformOperation
public OperationTransformer.TransformedOperation transformOperation(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation) Description copied from interface:OperationTransformerTransform the operation.- Specified by:
transformOperationin interfaceOperationTransformer- Parameters:
context- the operation contextaddress- the path addressoperation- the operation- Returns:
- the transformed operation
-
transformResult
public org.jboss.dmr.ModelNode transformResult(org.jboss.dmr.ModelNode result) Description copied from interface:OperationResultTransformerTransform the operation result.- Specified by:
transformResultin interfaceOperationResultTransformer- Parameters:
result- the operation response, including anyoutcome- Returns:
- the transformed response
-