public static class Transformers.Factory extends Object
| Modifier and Type | Method and Description |
|---|---|
static Transformers |
create(TransformationTarget target) |
static ResourceTransformationContext |
create(TransformationTarget target,
Resource model,
ImmutableManagementResourceRegistration registration,
ExpressionResolver resolver,
RunningMode runningMode,
ProcessType type,
TransformerOperationAttachment attachment)
Creates a ResourceTransformationContext
|
public static Transformers create(TransformationTarget target)
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.Copyright © 2015 JBoss by Red Hat. All rights reserved.