Interface ResourceTransformationContext
-
- All Superinterfaces:
TransformationContext
,Transformers.ResourceIgnoredTransformationRegistry
public interface ResourceTransformationContext extends TransformationContext, Transformers.ResourceIgnoredTransformationRegistry
The resource transformation context.- Author:
- Emanuel Muckenhuber
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addTransformedRecursiveResource(PathAddress relativeAddress, Resource resource)
Add a resource recursively including it's children.ResourceTransformationContext
addTransformedResource(PathAddress relativeAddress, Resource resource)
Add a resource.ResourceTransformationContext
addTransformedResourceFromRoot(PathAddress absoluteAddress, Resource resource)
Add a resource from the root of the model.Resource
getTransformedRoot()
Get the transformed root.void
processChild(PathElement element, Resource child)
Process a child.void
processChildren(Resource resource)
Process all children of a given resource.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, readResourceFromRoot
-
Methods inherited from interface org.jboss.as.controller.transform.Transformers.ResourceIgnoredTransformationRegistry
isResourceTransformationIgnored
-
-
-
-
Method Detail
-
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
void addTransformedRecursiveResource(PathAddress relativeAddress, Resource resource)
Add a resource recursively including it's children.- Parameters:
relativeAddress
- the relative addressresource
- the resource to add
-
processChildren
void processChildren(Resource resource) throws OperationFailedException
Process all children of a given resource.- Parameters:
resource
- the resource- Throws:
OperationFailedException
-
processChild
void processChild(PathElement element, Resource child) throws OperationFailedException
Process a child.- Parameters:
element
- the path elementchild
- the child- Throws:
OperationFailedException
-
readTransformedResource
Resource readTransformedResource(PathAddress address)
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
-
-