Class AliasOperationTransformer
- java.lang.Object
-
- org.jboss.as.controller.transform.AliasOperationTransformer
-
- All Implemented Interfaces:
CombinedTransformer,OperationTransformer,ResourceTransformer
public class AliasOperationTransformer extends Object implements CombinedTransformer
OperationTransformerandResourceTransformertransforming the operation address only.- Author:
- Emanuel Muckenhuber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAliasOperationTransformer.AddressTransformer-
Nested 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_RESULT
-
Fields inherited from interface org.jboss.as.controller.transform.ResourceTransformer
DEFAULT, DISCARD
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAliasOperationTransformer(AliasOperationTransformer.AddressTransformer transformer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AliasOperationTransformercreate(AliasOperationTransformer.AddressTransformer transformer)static AliasOperationTransformerreplaceLastElement(PathElement element)Replace the last element of an address with a static path element.OperationTransformer.TransformedOperationtransformOperation(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode original)Transform the operation.voidtransformResource(ResourceTransformationContext currentCtx, PathAddress address, Resource resource)Transform a resource.
-
-
-
Constructor Detail
-
AliasOperationTransformer
protected AliasOperationTransformer(AliasOperationTransformer.AddressTransformer transformer)
-
-
Method Detail
-
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
public static AliasOperationTransformer replaceLastElement(PathElement element)
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)
-
-