Class Transformers.Factory
- java.lang.Object
-
- org.jboss.as.controller.transform.Transformers.Factory
-
- Enclosing interface:
- Transformers
public static class Transformers.Factory extends Object
Convenience factory for unit tests, and default internal implementations
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Transformers
create(TransformationTarget target)
Returns a transformers object appropriate for the given target process.static ResourceTransformationContext
create(TransformationTarget target, Resource model, ImmutableManagementResourceRegistration registration, ExpressionResolver resolver, RunningMode runningMode, ProcessType type, TransformerOperationAttachment attachment)
Creates a ResourceTransformationContextstatic ResourceTransformationContext
create(TransformationTarget target, Resource model, ImmutableManagementResourceRegistration registration, ExpressionResolver resolver, RunningMode runningMode, ProcessType type, TransformerOperationAttachment attachment, Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry)
Creates a ResourceTransformationContextstatic Transformers
createLocal()
Create a local transformer, which will use the default transformation rules, however still respect the ignored resource transformation.
-
-
-
Method Detail
-
create
public static Transformers create(TransformationTarget target)
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
public static Transformers 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
-
-