public class TransformersImpl extends Object implements Transformers
Transformers.Factory, Transformers.OperationExcludedTransformationRegistry, Transformers.ResourceIgnoredTransformationRegistry, Transformers.TransformationInputs
DEFAULT
Modifier and Type | Method and Description |
---|---|
TransformationTarget |
getTarget()
Get information about the target.
|
protected static PathAddress |
transformAddress(PathAddress original,
TransformationTarget target)
Transform a path address.
|
OperationTransformer.TransformedOperation |
transformOperation(TransformationContext context,
org.jboss.dmr.ModelNode operation)
Only for use by test frameworks. Transforms an operation.
|
OperationTransformer.TransformedOperation |
transformOperation(Transformers.TransformationInputs transformationInputs,
org.jboss.dmr.ModelNode operation)
Transform an operation.
|
Resource |
transformResource(ResourceTransformationContext context,
Resource resource)
Only for use by test frameworks..
|
Resource |
transformRootResource(Transformers.TransformationInputs transformationInputs,
Resource resource)
Transform a given root resource, including children.
|
Resource |
transformRootResource(Transformers.TransformationInputs transformationInputs,
Resource resource,
Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry)
Transform a given resource, including children, removing resources that the given
ignoredTransformationRegistry
indicates are being ignored by the target process. |
public TransformationTarget getTarget()
Transformers
getTarget
in interface Transformers
public OperationTransformer.TransformedOperation transformOperation(TransformationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
Transformers
transformOperation
in interface Transformers
context
- contextual information about the transformationoperation
- the operation to transformOperationFailedException
public OperationTransformer.TransformedOperation transformOperation(Transformers.TransformationInputs transformationInputs, org.jboss.dmr.ModelNode operation) throws OperationFailedException
Transformers
transformOperation
in interface Transformers
transformationInputs
- standard inputs into a transformation process. Cannot be null
operation
- the operation to transform. Cannot be null
null
OperationFailedException
public Resource transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource) throws OperationFailedException
Transformers
resource
must represent the root of
HC's full resource tree but need not include all children, if the caller is not interested in transforming
the excluded children.transformRootResource
in interface Transformers
transformationInputs
- standard inputs into a transformation process. Cannot be null
resource
- the root resource. Cannot be null
null
OperationFailedException
public Resource transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource, Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry) throws OperationFailedException
Transformers
ignoredTransformationRegistry
indicates are being ignored by the target process. The given resource
must represent the root of
HC's full resource tree but need not include all children, if the caller is not interested in transforming
the excluded children.transformRootResource
in interface Transformers
transformationInputs
- standard inputs to a transformation. Cannot be null
resource
- the resource to be transformed (including children)ignoredTransformationRegistry
- provider of information on what addresses are being ignored by the target processOperationFailedException
public Resource transformResource(ResourceTransformationContext context, Resource resource) throws OperationFailedException
Transformers
transformResource
in interface Transformers
context
- contextual information about the transformationresource
- to transformOperationFailedException
protected static PathAddress transformAddress(PathAddress original, TransformationTarget target)
original
- the path address to be transformedtarget
- the transformation targetCopyright © 2023 JBoss by Red Hat. All rights reserved.