Interface Transformers
- All Known Implementing Classes:
TransformersImpl
public interface Transformers
Transformers API for manipulating transformation operations between different versions of application server
- Since:
- 7.1.2
- Author:
- Emanuel Muckenhuber, Tomaz Cerar
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classConvenience factory for unit tests, and default internal implementationsstatic interfaceProvides information on whether a target process is excluded from receiving operations for a particular resource addresses.static interfaceProvides information on whether a target process is ignoring particular resource addresses.static classStandard inputs into a transformation process. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Transformers.ResourceIgnoredTransformationRegistryA defaultTransformers.ResourceIgnoredTransformationRegistrythat says that no addresses are being ignored. -
Method Summary
Modifier and TypeMethodDescriptionGet information about the target.transformOperation(TransformationContext context, org.jboss.dmr.ModelNode operation) Only for use by test frameworks. Transforms an operation.transformOperation(Transformers.TransformationInputs transformationInputs, org.jboss.dmr.ModelNode operation) Transform an operation.transformResource(ResourceTransformationContext context, Resource resource) Only for use by test frameworks..transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource) Transform a given root resource, including children.transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource, Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry) Transform a given resource, including children, removing resources that the givenignoredTransformationRegistryindicates are being ignored by the target process.
-
Field Details
-
DEFAULT
A defaultTransformers.ResourceIgnoredTransformationRegistrythat says that no addresses are being ignored.
-
-
Method Details
-
getTarget
TransformationTarget getTarget()Get information about the target.- Returns:
- the target
-
transformOperation
OperationTransformer.TransformedOperation transformOperation(TransformationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException Only for use by test frameworks. Transforms an operation.- Parameters:
context- contextual information about the transformationoperation- the operation to transform- Returns:
- the transformed operation
- Throws:
OperationFailedException
-
transformOperation
OperationTransformer.TransformedOperation transformOperation(Transformers.TransformationInputs transformationInputs, org.jboss.dmr.ModelNode operation) throws OperationFailedException Transform an operation.- Parameters:
transformationInputs- standard inputs into a transformation process. Cannot benulloperation- the operation to transform. Cannot benull- Returns:
- the transformed operation. Will not be
null - Throws:
OperationFailedException
-
transformResource
Resource transformResource(ResourceTransformationContext context, Resource resource) throws OperationFailedException Only for use by test frameworks.. Transforms the given resource.- Parameters:
context- contextual information about the transformationresource- to transform- Returns:
- transformed resource, or same if no transformation was needed
- Throws:
OperationFailedException
-
transformRootResource
Resource transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource) throws OperationFailedException Transform a given root resource, including children. The givenresourcemust represent the root of HC's full resource tree but need not include all children, if the caller is not interested in transforming the excluded children.- Parameters:
transformationInputs- standard inputs into a transformation process. Cannot benullresource- the root resource. Cannot benull- Returns:
- the transformed resource. Will not be
null - Throws:
OperationFailedException
-
transformRootResource
Resource transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource, Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry) throws OperationFailedException Transform a given resource, including children, removing resources that the givenignoredTransformationRegistryindicates are being ignored by the target process. The givenresourcemust represent the root of HC's full resource tree but need not include all children, if the caller is not interested in transforming the excluded children.- Parameters:
transformationInputs- standard inputs to a transformation. Cannot benullresource- the resource to be transformed (including children)ignoredTransformationRegistry- provider of information on what addresses are being ignored by the target process- Returns:
- the transformed resource
- Throws:
OperationFailedException
-