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