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 forOperationTransformerimplementations, 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_RESULT
-
Fields inherited from interface org.jboss.as.controller.transform.OperationTransformer
DEFAULT, DEFAULT_REJECTION_POLICY, DISCARD, SUCCESSFUL_RESULT
-
-
Constructor Summary
Constructors Constructor Description AbstractOperationTransformer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.jboss.dmr.ModelNodetransform(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation)Transform the operation only.OperationTransformer.TransformedOperationtransformOperation(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.
-
-
-
Method Detail
-
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
-
-