Interface ChainedTransformationDescriptionBuilder


public interface ChainedTransformationDescriptionBuilder
A builder used to create chained transformers. Created using TransformationDescriptionBuilder.Factory.createChainedInstance(org.jboss.as.controller.PathElement, ModelVersion) or TransformationDescriptionBuilder.Factory.createChainedSubystemInstance(ModelVersion). The ModelVersion parameter to these operations is the 'current' model version. Internally this uses a OperationTransformerRegistry.PlaceholderResolver so if this is used, all children must also use chained transformers. Typically you should create a chain for the subsystem and add child transformations using the chained builder.
Author:
Kabir Khan
  • Method Details

    • createBuilder

      ResourceTransformationDescriptionBuilder createBuilder(ModelVersion fromVersion, ModelVersion toVersion)
      Add a transformer for a version delta
      Parameters:
      fromVersion - the version to transform from
      toVersion - the version to transform to
      Returns:
      the builder for the transformation
    • build

      Build the transformer chains for chain of versions.
      Parameters:
      versions - the versions in the transformer chain. This should not include the 'current' version mentioned in the class javadoc.
      Returns:
      a map of transformation descriptions for each model version
    • buildAndRegister

      void buildAndRegister(SubsystemTransformerRegistration registration, ModelVersion[]... chains)
      Builds and registers the transformer chains for this builder against a subsystem
      Parameters:
      registration - the subsystem registrations
      chains - the version chains (not including the 'current' version as in build(ModelVersion...))