Class ChainedTransformationTools

java.lang.Object
org.jboss.as.controller.transform.ChainedTransformationTools

public class ChainedTransformationTools extends Object
Tools to interact with the package protected ResourceTransformationContext implementation classes. Used for chained transformers
Author:
Kabir Khan
  • Constructor Details

    • ChainedTransformationTools

      public ChainedTransformationTools()
  • Method Details

    • initialiseChain

      Call when starting a new chain of model versions. This will copy the ResourceTransformationContext instance, using the extra resolver to resolve the children of the placeholder resource.
      Parameters:
      context - the context to copy. It should be at a chained placeholder
      placeholderResolver - the extra resolver to use to resolve the placeholder's children for the first model version delta in the chain
      Returns:
      a new ResourceTransformationContext instance using the extra resolver
    • nextInChainResource

      Call when transforming a new model version delta for a resource. This will copy the ResourceTransformationContext instance, using the extra resolver to resolve the children of the placeholder resource.
      Parameters:
      context - the context to copy. It should be at a chained placeholder
      placeholderResolver - the extra resolver to use to resolve the placeholder's children for the model version delta we are transforming
      Returns:
      a new ResourceTransformationContext instance 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 the ResourceTransformationContext instance, using the extra resolver to resolve the children of the placeholder resource.
      Parameters:
      context - the context to copy. It should be at a chained placeholder
      placeholderResolver - the extra resolver to use to resolve the placeholder's children for the model version delta we are transforming
      Returns:
      a new ResourceTransformationContext instance using the extra resolver
    • transformAddress

      public static PathAddress transformAddress(PathAddress original, TransformationTarget target)
      Transform a path address.
      Parameters:
      original - the path address to be transformed
      target - the transformation target
      Returns:
      the transformed path address