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 Summary
Modifier and TypeMethodDescriptionbuild(ModelVersion... versions) Build the transformer chains for chain of versions.voidbuildAndRegister(SubsystemTransformerRegistration registration, ModelVersion[]... chains) Builds and registers the transformer chains for this builder against a subsystemcreateBuilder(ModelVersion fromVersion, ModelVersion toVersion) Add a transformer for a version delta
-
Method Details
-
createBuilder
ResourceTransformationDescriptionBuilder createBuilder(ModelVersion fromVersion, ModelVersion toVersion) Add a transformer for a version delta- Parameters:
fromVersion- the version to transform fromtoVersion- 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
Builds and registers the transformer chains for this builder against a subsystem- Parameters:
registration- the subsystem registrationschains- the version chains (not including the 'current' version as inbuild(ModelVersion...))
-