Interface ResourceTransformationContext
- All Superinterfaces:
TransformationContext,Transformers.ResourceIgnoredTransformationRegistry
public interface ResourceTransformationContext
extends TransformationContext, Transformers.ResourceIgnoredTransformationRegistry
The resource transformation context.
- Author:
- Emanuel Muckenhuber
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransformedRecursiveResource(PathAddress relativeAddress, Resource resource) Add a resource recursively including it's children.addTransformedResource(PathAddress relativeAddress, Resource resource) Add a resource.addTransformedResourceFromRoot(PathAddress absoluteAddress, Resource resource) Add a resource from the root of the model.Get the transformed root.voidprocessChild(PathElement element, Resource child) Process a child.voidprocessChildren(Resource resource) Process all children of a given resource.readTransformedResource(PathAddress address) Read a resource from the transformed model.Methods inherited from interface org.jboss.as.controller.transform.TransformationContext
attach, attachIfAbsent, detach, getAttachment, getLogger, getProcessType, getResourceRegistration, getResourceRegistrationFromRoot, getRunningMode, getTarget, readResource, readResourceFromRootMethods inherited from interface org.jboss.as.controller.transform.Transformers.ResourceIgnoredTransformationRegistry
isResourceTransformationIgnored
-
Method Details
-
addTransformedResource
ResourceTransformationContext addTransformedResource(PathAddress relativeAddress, Resource resource) Add a resource.- Parameters:
relativeAddress- the relative addressresource- the resource model to add- Returns:
- the resource transformation context
-
addTransformedResourceFromRoot
ResourceTransformationContext addTransformedResourceFromRoot(PathAddress absoluteAddress, Resource resource) Add a resource from the root of the model.- Parameters:
absoluteAddress- the absolute addressresource- the resource model to add- Returns:
- the resource transformation context
-
addTransformedRecursiveResource
Add a resource recursively including it's children.- Parameters:
relativeAddress- the relative addressresource- the resource to add
-
processChildren
Process all children of a given resource.- Parameters:
resource- the resource- Throws:
OperationFailedException
-
processChild
Process a child.- Parameters:
element- the path elementchild- the child- Throws:
OperationFailedException
-
readTransformedResource
Read a resource from the transformed model. NOTE: this is going to already use the path transformed address PathAddressTransformer.- Parameters:
address- the relative address- Returns:
- the resource
-
getTransformedRoot
Resource getTransformedRoot()Get the transformed root.- Returns:
- the transformed root
-