Class AttributeConverter.DefaultAttributeConverter
java.lang.Object
org.jboss.as.controller.transform.description.AttributeConverter.DefaultAttributeConverter
- All Implemented Interfaces:
AttributeConverter
- Enclosing interface:
- AttributeConverter
public abstract static class AttributeConverter.DefaultAttributeConverter
extends Object
implements AttributeConverter
A default implementation of AttributeConverter
- Author:
- Kabir Khan
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.transform.description.AttributeConverter
AttributeConverter.DefaultAttributeConverter, AttributeConverter.Factory -
Field Summary
Fields inherited from interface org.jboss.as.controller.transform.description.AttributeConverter
DEFAULT_VALUE, NAME_FROM_ADDRESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidconvertAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context) Gets called by the default implementations ofconvertOperationParameter(PathAddress, String, ModelNode, ModelNode, TransformationContext)andconvertResourceAttribute(PathAddress, String, ModelNode, TransformationContext).voidconvertOperationParameter(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context) Converts an operation parametervoidconvertResourceAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context) Converts a resource attribute
-
Constructor Details
-
DefaultAttributeConverter
public DefaultAttributeConverter()
-
-
Method Details
-
convertOperationParameter
public void convertOperationParameter(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context) Converts an operation parameter- Specified by:
convertOperationParameterin interfaceAttributeConverter- Parameters:
address- the address of the operationattributeName- the name of the operation parameterattributeValue- the value of the operation parameter to be convertedoperation- the operation executed. This is unmodifiable.context- the context of the transformation
-
convertResourceAttribute
public void convertResourceAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context) Converts a resource attribute- Specified by:
convertResourceAttributein interfaceAttributeConverter- Parameters:
address- the address of the operationattributeName- the name of the attributeattributeValue- the value of the attribute to be convertedcontext- the context of the transformation
-
convertAttribute
protected abstract void convertAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context) Gets called by the default implementations ofconvertOperationParameter(PathAddress, String, ModelNode, ModelNode, TransformationContext)andconvertResourceAttribute(PathAddress, String, ModelNode, TransformationContext).- Parameters:
address- the address of the operation or resourceattributeName- the name of the attributeattributeValue- the value of the attributecontext- the context of the transformation
-