Class ChainedTransformationTools
- java.lang.Object
-
- org.jboss.as.controller.transform.ChainedTransformationTools
-
public class ChainedTransformationTools extends Object
Tools to interact with the package protectedResourceTransformationContextimplementation classes. Used for chained transformers- Author:
- Kabir Khan
-
-
Constructor Summary
Constructors Constructor Description ChainedTransformationTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceTransformationContextinitialiseChain(ResourceTransformationContext context, OperationTransformerRegistry.PlaceholderResolver placeholderResolver)Call when starting a new chain of model versions.static ResourceTransformationContextnextInChainOperation(ResourceTransformationContext context, OperationTransformerRegistry.PlaceholderResolver placeholderResolver)Call when transforming a new model version delta for an operation.static ResourceTransformationContextnextInChainResource(ResourceTransformationContext context, OperationTransformerRegistry.PlaceholderResolver placeholderResolver)Call when transforming a new model version delta for a resource.static PathAddresstransformAddress(PathAddress original, TransformationTarget target)Transform a path address.
-
-
-
Method Detail
-
initialiseChain
public static ResourceTransformationContext initialiseChain(ResourceTransformationContext context, OperationTransformerRegistry.PlaceholderResolver placeholderResolver)
Call when starting a new chain of model versions. This will copy theResourceTransformationContextinstance, using the extra resolver to resolve the children of the placeholder resource.- Parameters:
context- the context to copy. It should be at a chained placeholderplaceholderResolver- the extra resolver to use to resolve the placeholder's children for the first model version delta in the chain- Returns:
- a new
ResourceTransformationContextinstance using the extra resolver
-
nextInChainResource
public static ResourceTransformationContext nextInChainResource(ResourceTransformationContext context, OperationTransformerRegistry.PlaceholderResolver placeholderResolver)
Call when transforming a new model version delta for a resource. This will copy theResourceTransformationContextinstance, using the extra resolver to resolve the children of the placeholder resource.- Parameters:
context- the context to copy. It should be at a chained placeholderplaceholderResolver- the extra resolver to use to resolve the placeholder's children for the model version delta we are transforming- Returns:
- a new
ResourceTransformationContextinstance using the extra resolver
-
nextInChainOperation
public static ResourceTransformationContext nextInChainOperation(ResourceTransformationContext context, OperationTransformerRegistry.PlaceholderResolver placeholderResolver)
Call when transforming a new model version delta for an operation. This will copy theResourceTransformationContextinstance, using the extra resolver to resolve the children of the placeholder resource.- Parameters:
context- the context to copy. It should be at a chained placeholderplaceholderResolver- the extra resolver to use to resolve the placeholder's children for the model version delta we are transforming- Returns:
- a new
ResourceTransformationContextinstance using the extra resolver
-
transformAddress
public static PathAddress transformAddress(PathAddress original, TransformationTarget target)
Transform a path address.- Parameters:
original- the path address to be transformedtarget- the transformation target- Returns:
- the transformed path address
-
-