public abstract class AbstractMongoConverter extends Object implements MongoConverter, InitializingBean
MongoConverter
implementations. Sets up a GenericConversionService
and populates basic
converters. Allows registering CustomConversions
.Modifier and Type | Field and Description |
---|---|
protected CustomConversions |
conversions |
protected GenericConversionService |
conversionService |
protected org.springframework.data.convert.EntityInstantiators |
instantiators |
Constructor and Description |
---|
AbstractMongoConverter(GenericConversionService conversionService)
Creates a new
AbstractMongoConverter using the given GenericConversionService . |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
ConversionService |
getConversionService() |
void |
setCustomConversions(CustomConversions conversions)
Registers the given custom conversions with the converter.
|
void |
setInstantiators(org.springframework.data.convert.EntityInstantiators instantiators)
Registers
EntityInstantiators to customize entity instantiation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertToMongoType, toDBRef
protected final GenericConversionService conversionService
protected CustomConversions conversions
protected org.springframework.data.convert.EntityInstantiators instantiators
public AbstractMongoConverter(GenericConversionService conversionService)
AbstractMongoConverter
using the given GenericConversionService
.conversionService
- public void setCustomConversions(CustomConversions conversions)
conversions
- public void setInstantiators(org.springframework.data.convert.EntityInstantiators instantiators)
EntityInstantiators
to customize entity instantiation.instantiators
- public ConversionService getConversionService()
getConversionService
in interface org.springframework.data.convert.EntityConverter<MongoPersistentEntity<?>,MongoPersistentProperty,Object,DBObject>
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
Copyright © 2012. All Rights Reserved.