Class ChainedTransformationTools
java.lang.Object
org.jboss.as.controller.transform.ChainedTransformationTools
Tools to interact with the package protected
ResourceTransformationContext implementation classes.
Used for chained transformers- Author:
- Kabir Khan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninitialiseChain(ResourceTransformationContext context, OperationTransformerRegistry.PlaceholderResolver placeholderResolver) Call when starting a new chain of model versions.nextInChainOperation(ResourceTransformationContext context, OperationTransformerRegistry.PlaceholderResolver placeholderResolver) Call when transforming a new model version delta for an operation.nextInChainResource(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.
-
Constructor Details
-
ChainedTransformationTools
public ChainedTransformationTools()
-
-
Method Details
-
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
Transform a path address.- Parameters:
original- the path address to be transformedtarget- the transformation target- Returns:
- the transformed path address
-