Class Transformers.Factory
java.lang.Object
org.jboss.as.controller.transform.Transformers.Factory
- Enclosing interface:
- Transformers
Convenience factory for unit tests, and default internal implementations
-
Method Summary
Modifier and TypeMethodDescriptionstatic Transformerscreate(TransformationTarget target) Returns a transformers object appropriate for the given target process.create(TransformationTarget target, Resource model, ImmutableManagementResourceRegistration registration, ExpressionResolver resolver, RunningMode runningMode, ProcessType type, TransformerOperationAttachment attachment) Creates a ResourceTransformationContextcreate(TransformationTarget target, Resource model, ImmutableManagementResourceRegistration registration, ExpressionResolver resolver, RunningMode runningMode, ProcessType type, TransformerOperationAttachment attachment, Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry) Creates a ResourceTransformationContextstatic TransformersCreate a local transformer, which will use the default transformation rules, however still respect the ignored resource transformation.
-
Method Details
-
create
Returns a transformers object appropriate for the given target process.- Parameters:
target- the transformation target- Returns:
- the transformers instance. Will not be
null
-
create
public static ResourceTransformationContext create(TransformationTarget target, Resource model, ImmutableManagementResourceRegistration registration, ExpressionResolver resolver, RunningMode runningMode, ProcessType type, TransformerOperationAttachment attachment) Creates a ResourceTransformationContext- Parameters:
target- the transformation targetmodel- the modelregistration- the resource registrationresolver- the expression resolverrunningMode- the server running modetype- the process typeattachment- attachments propagated from the operation context to the created transformer context. This may benull. In a non-test scenario, this will be added by operation handlers triggering the transformation, but for tests this needs to be hard-coded. Tests will need to ensure themselves that the relevant attachments get set.- Returns:
- the created context Will not be
null
-
create
public static ResourceTransformationContext create(TransformationTarget target, Resource model, ImmutableManagementResourceRegistration registration, ExpressionResolver resolver, RunningMode runningMode, ProcessType type, TransformerOperationAttachment attachment, Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry) Creates a ResourceTransformationContext- Parameters:
target- the transformation targetmodel- the modelregistration- the resource registrationresolver- the expression resolverrunningMode- the server running modetype- the process typeattachment- attachments propagated from the operation context to the created transformer context. This may benull. In a non-test scenario, this will be added by operation handlers triggering the transformation, but for tests this needs to be hard-coded. Tests will need to ensure themselves that the relevant attachments get set.- Returns:
- the created context Will not be
null
-
createLocal
Create a local transformer, which will use the default transformation rules, however still respect the ignored resource transformation.- Returns:
- the transformers instance. Will not be
null
-