Interface ChainedTransformationDescriptionBuilder
-
public interface ChainedTransformationDescriptionBuilderA builder used to create chained transformers. Created usingTransformationDescriptionBuilder.Factory.createChainedInstance(org.jboss.as.controller.PathElement, ModelVersion)orTransformationDescriptionBuilder.Factory.createChainedSubystemInstance(ModelVersion). TheModelVersionparameter to these operations is the 'current' model version. Internally this uses aOperationTransformerRegistry.PlaceholderResolverso 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<ModelVersion,TransformationDescription>build(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 subsystemResourceTransformationDescriptionBuildercreateBuilder(ModelVersion fromVersion, ModelVersion toVersion)Add a transformer for a version delta
-
-
-
Method Detail
-
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
Map<ModelVersion,TransformationDescription> build(ModelVersion... versions)
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 registrationschains- the version chains (not including the 'current' version as inbuild(ModelVersion...))
-
-