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 Constructor Description DefaultAttributeConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)
.void
convertOperationParameter(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context)
Converts an operation parametervoid
convertResourceAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context)
Converts a resource attribute
-
-
-
Method Detail
-
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:
convertOperationParameter
in 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:
convertResourceAttribute
in 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
-
-