Interface Transformers
-
- All Known Implementing Classes:
TransformersImpl
public interface TransformersTransformers API for manipulating transformation operations between different versions of application server- Since:
- 7.1.2
- Author:
- Emanuel Muckenhuber, Tomaz Cerar
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTransformers.FactoryConvenience factory for unit tests, and default internal implementationsstatic interfaceTransformers.OperationExcludedTransformationRegistryProvides information on whether a target process is excluded from receiving operations for a particular resource addresses.static interfaceTransformers.ResourceIgnoredTransformationRegistryProvides information on whether a target process is ignoring particular resource addresses.static classTransformers.TransformationInputsStandard inputs into a transformation process.
-
Field Summary
Fields Modifier and Type Field Description static Transformers.ResourceIgnoredTransformationRegistryDEFAULTA defaultTransformers.ResourceIgnoredTransformationRegistrythat says that no addresses are being ignored.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransformationTargetgetTarget()Get information about the target.OperationTransformer.TransformedOperationtransformOperation(TransformationContext context, org.jboss.dmr.ModelNode operation)Only for use by test frameworks. Transforms an operation.OperationTransformer.TransformedOperationtransformOperation(Transformers.TransformationInputs transformationInputs, org.jboss.dmr.ModelNode operation)Transform an operation.ResourcetransformResource(ResourceTransformationContext context, Resource resource)Only for use by test frameworks..ResourcetransformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource)Transform a given root resource, including children.ResourcetransformRootResource(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 Detail
-
DEFAULT
static final Transformers.ResourceIgnoredTransformationRegistry DEFAULT
A defaultTransformers.ResourceIgnoredTransformationRegistrythat says that no addresses are being ignored.
-
-
Method Detail
-
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
-
-