public class DiscardUndefinedAttributesTransformer extends Object implements ResourceTransformer, OperationTransformer
OperationFailedException unless the resource is ignored by the target.OperationTransformer.TransformedOperationDEFAULT, DISCARDDEFAULT, DEFAULT_REJECTION_POLICY, DISCARD, SUCCESSFUL_RESULT| Constructor and Description |
|---|
DiscardUndefinedAttributesTransformer(AttributeDefinition... attributes) |
DiscardUndefinedAttributesTransformer(Set<String> attributeNames) |
DiscardUndefinedAttributesTransformer(String... attributeNames) |
| Modifier and Type | Method and Description |
|---|---|
OperationTransformer |
getUndefineAttributeTransformer() |
OperationTransformer |
getWriteAttributeTransformer() |
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.
|
public DiscardUndefinedAttributesTransformer(AttributeDefinition... attributes)
public DiscardUndefinedAttributesTransformer(String... attributeNames)
public OperationTransformer getWriteAttributeTransformer()
public OperationTransformer getUndefineAttributeTransformer()
public void transformResource(ResourceTransformationContext context, PathAddress address, Resource resource) throws OperationFailedException
ResourceTransformertransformResource in interface ResourceTransformercontext - the resource transformation contextaddress - the path addressresource - the resource to transformOperationFailedExceptionpublic OperationTransformer.TransformedOperation transformOperation(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation) throws OperationFailedException
OperationTransformertransformOperation in interface OperationTransformercontext - the operation contextaddress - the path addressoperation - the operationOperationFailedExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.