Class MongoConversionContext
java.lang.Object
org.springframework.data.mongodb.core.convert.MongoConversionContext
- All Implemented Interfaces:
ValueConversionContext<MongoPersistentProperty>
public class MongoConversionContext
extends Object
implements ValueConversionContext<MongoPersistentProperty>
ValueConversionContext
that allows to delegate read/write to an underlying MongoConverter
.- Since:
- 3.4
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorDescriptionMongoConversionContext
(PropertyValueProvider<MongoPersistentProperty> accessor, MongoPersistentProperty persistentProperty, MongoConverter mongoConverter) MongoConversionContext
(PropertyValueProvider<MongoPersistentProperty> accessor, MongoPersistentProperty persistentProperty, MongoConverter mongoConverter, SpELContext spELContext) -
Method Summary
Modifier and TypeMethodDescription<T> T
read
(Object value, TypeInformation<T> target) <T> T
write
(Object value, TypeInformation<T> target) 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.ValueConversionContext
read, read, write, write
-
Constructor Details
-
MongoConversionContext
public MongoConversionContext(PropertyValueProvider<MongoPersistentProperty> accessor, @Nullable MongoPersistentProperty persistentProperty, MongoConverter mongoConverter) -
MongoConversionContext
public MongoConversionContext(PropertyValueProvider<MongoPersistentProperty> accessor, @Nullable MongoPersistentProperty persistentProperty, MongoConverter mongoConverter, @Nullable SpELContext spELContext)
-
-
Method Details
-
getProperty
- Specified by:
getProperty
in interfaceValueConversionContext<MongoPersistentProperty>
-
getValue
-
write
- Specified by:
write
in interfaceValueConversionContext<MongoPersistentProperty>
-
read
- Specified by:
read
in interfaceValueConversionContext<MongoPersistentProperty>
-
getSpELContext
-