Class AliasOperationTransformer
java.lang.Object
org.jboss.as.controller.transform.AliasOperationTransformer
- All Implemented Interfaces:
CombinedTransformer,OperationTransformer,ResourceTransformer
OperationTransformer and ResourceTransformer transforming the operation address only.- Author:
- Emanuel Muckenhuber
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.jboss.as.controller.transform.OperationTransformer
OperationTransformer.TransformedOperation -
Field Summary
Fields inherited from interface org.jboss.as.controller.transform.OperationTransformer
DEFAULT, DEFAULT_REJECTION_POLICY, DISCARD, SUCCESSFUL_RESULTFields inherited from interface org.jboss.as.controller.transform.ResourceTransformer
DEFAULT, DISCARD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionstatic AliasOperationTransformercreate(AliasOperationTransformer.AddressTransformer transformer) static AliasOperationTransformerreplaceLastElement(PathElement element) Replace the last element of an address with a static path element.transformOperation(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode original) Transform the operation.voidtransformResource(ResourceTransformationContext currentCtx, PathAddress address, Resource resource) Transform a resource.
-
Constructor Details
-
AliasOperationTransformer
-
-
Method Details
-
transformOperation
public OperationTransformer.TransformedOperation transformOperation(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode original) throws OperationFailedException Description copied from interface:OperationTransformerTransform the operation.- Specified by:
transformOperationin interfaceOperationTransformer- Parameters:
context- the operation contextaddress- the path addressoriginal- the operation- Returns:
- the transformed operation
- Throws:
OperationFailedException
-
transformResource
public void transformResource(ResourceTransformationContext currentCtx, PathAddress address, Resource resource) throws OperationFailedException Description copied from interface:ResourceTransformerTransform a resource.- Specified by:
transformResourcein interfaceResourceTransformer- Parameters:
currentCtx- the resource transformation contextaddress- the path addressresource- the resource to transform- Throws:
OperationFailedException
-
replaceLastElement
Replace the last element of an address with a static path element.- Parameters:
element- the path element- Returns:
- the operation address transformer
-
create
public static AliasOperationTransformer create(AliasOperationTransformer.AddressTransformer transformer)
-