Class RejectExpressionValuesTransformer
- java.lang.Object
-
- org.jboss.as.controller.transform.RejectExpressionValuesTransformer
-
- All Implemented Interfaces:
OperationTransformer
,ResourceTransformer
public class RejectExpressionValuesTransformer extends Object implements ResourceTransformer, OperationTransformer
A transformer rejecting values containing an expression.- Author:
- Emanuel Muckenhuber, Kabir Khan
-
-
Nested Class Summary
-
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 Constructor Description RejectExpressionValuesTransformer(String... attributeNames)
RejectExpressionValuesTransformer(String attributeName, AttributeTransformationRequirementChecker checker)
RejectExpressionValuesTransformer(Map<String,AttributeTransformationRequirementChecker> specialCheckers)
RejectExpressionValuesTransformer(Set<String> attributeNames)
RejectExpressionValuesTransformer(Set<String> allAttributeNames, Map<String,AttributeTransformationRequirementChecker> specialCheckers)
RejectExpressionValuesTransformer(AttributeDefinition... attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationTransformer
getWriteAttributeTransformer()
Get a "write-attribute" operation transformer.OperationTransformer.TransformedOperation
transformOperation(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation)
Transform the operation.void
transformResource(ResourceTransformationContext context, PathAddress address, Resource resource)
Transform a resource.
-
-
-
Constructor Detail
-
RejectExpressionValuesTransformer
public RejectExpressionValuesTransformer(AttributeDefinition... attributes)
-
RejectExpressionValuesTransformer
public RejectExpressionValuesTransformer(Set<String> attributeNames)
-
RejectExpressionValuesTransformer
public RejectExpressionValuesTransformer(String... attributeNames)
-
RejectExpressionValuesTransformer
public RejectExpressionValuesTransformer(Set<String> allAttributeNames, Map<String,AttributeTransformationRequirementChecker> specialCheckers)
-
RejectExpressionValuesTransformer
public RejectExpressionValuesTransformer(Map<String,AttributeTransformationRequirementChecker> specialCheckers)
-
RejectExpressionValuesTransformer
public RejectExpressionValuesTransformer(String attributeName, AttributeTransformationRequirementChecker checker)
-
-
Method Detail
-
getWriteAttributeTransformer
public OperationTransformer getWriteAttributeTransformer()
Get a "write-attribute" operation transformer.- Returns:
- a write attribute operation transformer
-
transformOperation
public OperationTransformer.TransformedOperation transformOperation(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation) throws OperationFailedException
Description copied from interface:OperationTransformer
Transform the operation.- Specified by:
transformOperation
in interfaceOperationTransformer
- Parameters:
context
- the operation contextaddress
- the path addressoperation
- the operation- Returns:
- the transformed operation
- Throws:
OperationFailedException
-
transformResource
public void transformResource(ResourceTransformationContext context, PathAddress address, Resource resource) throws OperationFailedException
Description copied from interface:ResourceTransformer
Transform a resource.- Specified by:
transformResource
in interfaceResourceTransformer
- Parameters:
context
- the resource transformation contextaddress
- the path addressresource
- the resource to transform- Throws:
OperationFailedException
-
-