Class AddNameFromAddressResourceTransformer
java.lang.Object
org.jboss.as.controller.transform.AddNameFromAddressResourceTransformer
- All Implemented Interfaces:
ResourceTransformer
ResourceTransformer that takes the value in the last element of the given address
and stores it in a model attribute named name.
This transformer can be used to preserve compatibility when ReadResourceNameOperationStepHandler is
used to replace storage of a resource name in the model.
- See Also:
-
Field Summary
FieldsFields inherited from interface org.jboss.as.controller.transform.ResourceTransformer
DEFAULT, DISCARD -
Method Summary
Modifier and TypeMethodDescriptionvoidtransformResource(ResourceTransformationContext context, PathAddress address, Resource resource) Transform a resource.
-
Field Details
-
INSTANCE
-
-
Method Details
-
transformResource
public void transformResource(ResourceTransformationContext context, PathAddress address, Resource resource) throws OperationFailedException Description copied from interface:ResourceTransformerTransform a resource.- Specified by:
transformResourcein interfaceResourceTransformer- Parameters:
context- the resource transformation contextaddress- the path addressresource- the resource to transform- Throws:
OperationFailedException
-