Class TransformersImpl
- java.lang.Object
-
- org.jboss.as.controller.transform.TransformersImpl
-
- All Implemented Interfaces:
Transformers
public class TransformersImpl extends Object implements Transformers
- Author:
- Emanuel Muckenhuber, Tomaz Cerar
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.controller.transform.Transformers
Transformers.Factory, Transformers.OperationExcludedTransformationRegistry, Transformers.ResourceIgnoredTransformationRegistry, Transformers.TransformationInputs
-
-
Field Summary
-
Fields inherited from interface org.jboss.as.controller.transform.Transformers
DEFAULT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 givenignoredTransformationRegistry
indicates are being ignored by the target process.
-
-
-
Method Detail
-
getTarget
public TransformationTarget getTarget()
Description copied from interface:Transformers
Get information about the target.- Specified by:
getTarget
in interfaceTransformers
- Returns:
- the target
-
transformOperation
public OperationTransformer.TransformedOperation transformOperation(TransformationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
Description copied from interface:Transformers
Only for use by test frameworks. Transforms an operation.- Specified by:
transformOperation
in interfaceTransformers
- Parameters:
context
- contextual information about the transformationoperation
- the operation to transform- Returns:
- the transformed operation
- Throws:
OperationFailedException
-
transformOperation
public OperationTransformer.TransformedOperation transformOperation(Transformers.TransformationInputs transformationInputs, org.jboss.dmr.ModelNode operation) throws OperationFailedException
Description copied from interface:Transformers
Transform an operation.- Specified by:
transformOperation
in interfaceTransformers
- Parameters:
transformationInputs
- standard inputs into a transformation process. Cannot benull
operation
- the operation to transform. Cannot benull
- Returns:
- the transformed operation. Will not be
null
- Throws:
OperationFailedException
-
transformRootResource
public Resource transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource) throws OperationFailedException
Description copied from interface:Transformers
Transform a given root resource, including children. The givenresource
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.- Specified by:
transformRootResource
in interfaceTransformers
- Parameters:
transformationInputs
- standard inputs into a transformation process. Cannot benull
resource
- the root resource. Cannot benull
- Returns:
- the transformed resource. Will not be
null
- Throws:
OperationFailedException
-
transformRootResource
public Resource transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource, Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry) throws OperationFailedException
Description copied from interface:Transformers
Transform a given resource, including children, removing resources that the givenignoredTransformationRegistry
indicates are being ignored by the target process. The givenresource
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.- Specified by:
transformRootResource
in interfaceTransformers
- Parameters:
transformationInputs
- standard inputs to a transformation. Cannot benull
resource
- the resource to be transformed (including children)ignoredTransformationRegistry
- provider of information on what addresses are being ignored by the target process- Returns:
- the transformed resource
- Throws:
OperationFailedException
-
transformResource
public Resource transformResource(ResourceTransformationContext context, Resource resource) throws OperationFailedException
Description copied from interface:Transformers
Only for use by test frameworks.. Transforms the given resource.- Specified by:
transformResource
in interfaceTransformers
- Parameters:
context
- contextual information about the transformationresource
- to transform- Returns:
- transformed resource, or same if no transformation was needed
- Throws:
OperationFailedException
-
transformAddress
protected static PathAddress transformAddress(PathAddress original, TransformationTarget target)
Transform a path address.- Parameters:
original
- the path address to be transformedtarget
- the transformation target- Returns:
- the transformed path address
-
-