Package net.solarnetwork.codec
Class BindingResultSerializer
java.lang.Object
net.solarnetwork.codec.BindingResultSerializer
- All Implemented Interfaces:
PropertySerializer
Serialize a
BindingResult into a simple Map, to eliminate circular
references.- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BindingResultSerializer
public BindingResultSerializer()
-
-
Method Details
-
serialize
Description copied from interface:PropertySerializerSerialize a property value.The
dataandpropertyNameparameters might not be used by different implementations, but allow for a single implementation to serialize more than one property of an object in different ways, if desired.- Specified by:
serializein interfacePropertySerializer- Parameters:
data- the source data being serialized, i.e. a JavaBeanpropertyName- the name of the property being serializedpropertyValue- the value of the property to serialize- Returns:
- the serialized value of the property
-