Class JsonValueConverter
java.lang.Object
org.springframework.data.couchbase.core.convert.JsonValueConverter
- All Implemented Interfaces:
PropertyValueConverter<Object,
Object, ValueConversionContext<? extends PersistentProperty<?>>>
public class JsonValueConverter
extends Object
implements PropertyValueConverter<Object,Object,ValueConversionContext<? extends PersistentProperty<?>>>
Converter for non-Enum types that have @JsonValue and possibly an @JsonCreator annotated methods.
- Author:
- Michael Reiche
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.convert.PropertyValueConverter
PropertyValueConverter.FunctionPropertyValueConverter<DV extends Object,
SV extends Object, P extends PersistentProperty<P>>, PropertyValueConverter.ObjectToObjectPropertyValueConverter -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(Object value, ValueConversionContext<? extends PersistentProperty<?>> context) write
(Object value, ValueConversionContext<? extends PersistentProperty<?>> context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.convert.PropertyValueConverter
readNull, writeNull
-
Field Details
-
valueMethodCache
-
creatorMethodCache
-
-
Constructor Details
-
JsonValueConverter
public JsonValueConverter()
-
-
Method Details
-
read
- Specified by:
read
in interfacePropertyValueConverter<Object,
Object, ValueConversionContext<? extends PersistentProperty<?>>>
-
write
- Specified by:
write
in interfacePropertyValueConverter<Object,
Object, ValueConversionContext<? extends PersistentProperty<?>>>
-