org.springframework.data.mongodb.core.convert
Class AbstractMongoConverter
java.lang.Object
org.springframework.data.mongodb.core.convert.AbstractMongoConverter
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, org.springframework.data.convert.EntityConverter<MongoPersistentEntity<?>,MongoPersistentProperty,Object,com.mongodb.DBObject>, org.springframework.data.convert.EntityReader<Object,com.mongodb.DBObject>, org.springframework.data.convert.EntityWriter<Object,com.mongodb.DBObject>, MongoConverter, MongoWriter<Object>
- Direct Known Subclasses:
- MappingMongoConverter
public abstract class AbstractMongoConverter
- extends Object
- implements MongoConverter, org.springframework.beans.factory.InitializingBean
Base class for MongoConverter implementations. Sets up a GenericConversionService and populates basic
converters. Allows registering CustomConversions.
- Author:
- Jon Brisbin , Oliver Gierke ogierke@vmware.com
| 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.EntityConverter |
getMappingContext |
| Methods inherited from interface org.springframework.data.convert.EntityReader |
read |
| Methods inherited from interface org.springframework.data.convert.EntityWriter |
write |
conversionService
protected final org.springframework.core.convert.support.GenericConversionService conversionService
conversions
protected CustomConversions conversions
AbstractMongoConverter
public AbstractMongoConverter(org.springframework.core.convert.support.GenericConversionService conversionService)
- Creates a new
AbstractMongoConverter using the given GenericConversionService.
- Parameters:
conversionService -
setCustomConversions
public void setCustomConversions(CustomConversions conversions)
- Registers the given custom conversions with the converter.
- Parameters:
conversions -
getConversionService
public org.springframework.core.convert.ConversionService getConversionService()
- Specified by:
getConversionService in interface org.springframework.data.convert.EntityConverter<MongoPersistentEntity<?>,MongoPersistentProperty,Object,com.mongodb.DBObject>
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Copyright © 2012. All Rights Reserved.