Class TransformersImpl
java.lang.Object
org.jboss.as.controller.transform.TransformersImpl
- All Implemented Interfaces:
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
Modifier and TypeMethodDescriptionGet information about the target.protected static PathAddresstransformAddress(PathAddress original, TransformationTarget target) Transform a path address.transformOperation(TransformationContext context, org.jboss.dmr.ModelNode operation) Only for use by test frameworks. Transforms an operation.transformOperation(Transformers.TransformationInputs transformationInputs, org.jboss.dmr.ModelNode operation) Transform an operation.transformResource(ResourceTransformationContext context, Resource resource) Only for use by test frameworks..transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource) Transform a given root resource, including children.transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource, Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry) Transform a given resource, including children, removing resources that the givenignoredTransformationRegistryindicates are being ignored by the target process.
-
Method Details
-
getTarget
Description copied from interface:TransformersGet information about the target.- Specified by:
getTargetin interfaceTransformers- Returns:
- the target
-
transformOperation
public OperationTransformer.TransformedOperation transformOperation(TransformationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException Description copied from interface:TransformersOnly for use by test frameworks. Transforms an operation.- Specified by:
transformOperationin 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:TransformersTransform an operation.- Specified by:
transformOperationin interfaceTransformers- Parameters:
transformationInputs- standard inputs into a transformation process. Cannot benulloperation- 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:TransformersTransform a given root resource, including children. The givenresourcemust 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:
transformRootResourcein interfaceTransformers- Parameters:
transformationInputs- standard inputs into a transformation process. Cannot benullresource- 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:TransformersTransform a given resource, including children, removing resources that the givenignoredTransformationRegistryindicates are being ignored by the target process. The givenresourcemust 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:
transformRootResourcein interfaceTransformers- Parameters:
transformationInputs- standard inputs to a transformation. Cannot benullresource- 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:TransformersOnly for use by test frameworks.. Transforms the given resource.- Specified by:
transformResourcein interfaceTransformers- Parameters:
context- contextual information about the transformationresource- to transform- Returns:
- transformed resource, or same if no transformation was needed
- Throws:
OperationFailedException
-
transformAddress
Transform a path address.- Parameters:
original- the path address to be transformedtarget- the transformation target- Returns:
- the transformed path address
-