public class TransformersImpl extends Object implements Transformers
Transformers.Factory, Transformers.OperationExcludedTransformationRegistry, Transformers.ResourceIgnoredTransformationRegistry, Transformers.TransformationInputsDEFAULT| 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()
TransformersgetTarget in interface Transformerspublic OperationTransformer.TransformedOperation transformOperation(TransformationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
TransformerstransformOperation in interface Transformerscontext - contextual information about the transformationoperation - the operation to transformOperationFailedExceptionpublic OperationTransformer.TransformedOperation transformOperation(Transformers.TransformationInputs transformationInputs, org.jboss.dmr.ModelNode operation) throws OperationFailedException
TransformerstransformOperation in interface TransformerstransformationInputs - standard inputs into a transformation process. Cannot be nulloperation - the operation to transform. Cannot be nullnullOperationFailedExceptionpublic Resource transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource) throws OperationFailedException
Transformersresource 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 TransformerstransformationInputs - standard inputs into a transformation process. Cannot be nullresource - the root resource. Cannot be nullnullOperationFailedExceptionpublic Resource transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource, Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry) throws OperationFailedException
TransformersignoredTransformationRegistry
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 TransformerstransformationInputs - standard inputs to a transformation. Cannot be nullresource - the resource to be transformed (including children)ignoredTransformationRegistry - provider of information on what addresses are being ignored by the target processOperationFailedExceptionpublic Resource transformResource(ResourceTransformationContext context, Resource resource) throws OperationFailedException
TransformerstransformResource in interface Transformerscontext - contextual information about the transformationresource - to transformOperationFailedExceptionprotected static PathAddress transformAddress(PathAddress original, TransformationTarget target)
original - the path address to be transformedtarget - the transformation targetCopyright © 2020 JBoss by Red Hat. All rights reserved.