public static class Transformers.Factory extends Object
Modifier and Type | Method and 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 ResourceTransformationContext
|
static ResourceTransformationContext |
create(TransformationTarget target,
Resource model,
ImmutableManagementResourceRegistration registration,
ExpressionResolver resolver,
RunningMode runningMode,
ProcessType type,
TransformerOperationAttachment attachment,
Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry)
Creates a ResourceTransformationContext
|
static Transformers |
createLocal()
Create a local transformer, which will use the default transformation rules, however still respect the
ignored resource transformation.
|
public static Transformers create(TransformationTarget target)
target
- the transformation targetnull
public static ResourceTransformationContext create(TransformationTarget target, Resource model, ImmutableManagementResourceRegistration registration, ExpressionResolver resolver, RunningMode runningMode, ProcessType type, TransformerOperationAttachment attachment)
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 be null
. 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.null
public static ResourceTransformationContext create(TransformationTarget target, Resource model, ImmutableManagementResourceRegistration registration, ExpressionResolver resolver, RunningMode runningMode, ProcessType type, TransformerOperationAttachment attachment, Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry)
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 be null
. 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.null
public static Transformers createLocal()
null
Copyright © 2023 JBoss by Red Hat. All rights reserved.