public abstract class AbstractOperationTransformer extends Object implements OperationTransformer, OperationResultTransformer
OperationTransformer
implementations, which don't need to transform the operation result.OperationTransformer.TransformedOperation
DEFAULT, DEFAULT_REJECTION_POLICY, DISCARD, SUCCESSFUL_RESULT
ORIGINAL_RESULT
Constructor and Description |
---|
AbstractOperationTransformer() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.jboss.dmr.ModelNode |
transform(TransformationContext context,
PathAddress address,
org.jboss.dmr.ModelNode operation)
Transform the operation only.
|
OperationTransformer.TransformedOperation |
transformOperation(TransformationContext context,
PathAddress address,
org.jboss.dmr.ModelNode operation)
Transform the operation.
|
org.jboss.dmr.ModelNode |
transformResult(org.jboss.dmr.ModelNode result)
Transform the operation result.
|
protected abstract org.jboss.dmr.ModelNode transform(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation)
context
- the transformation contextaddress
- the operation addressoperation
- the original operationpublic OperationTransformer.TransformedOperation transformOperation(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation)
OperationTransformer
transformOperation
in interface OperationTransformer
context
- the operation contextaddress
- the path addressoperation
- the operationpublic org.jboss.dmr.ModelNode transformResult(org.jboss.dmr.ModelNode result)
OperationResultTransformer
transformResult
in interface OperationResultTransformer
result
- the operation response, including any outcome
Copyright © 2023 JBoss by Red Hat. All rights reserved.