DATACOUCH-129 - Ensure Spring Framework 4.2 compatibility.

Removed deprecated (and in 4.2 removed) usage of ConversionServiceFactory in MappingCouchbaseConverter.

Original pull request: #42.
This commit is contained in:
Christoph Strobl
2015-06-23 09:51:17 +02:00
committed by Oliver Gierke
parent b60782c3c1
commit de1c2581f7

View File

@@ -20,7 +20,7 @@ import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.core.CollectionFactory;
import org.springframework.core.convert.ConversionService;
import org.springframework.core.convert.support.ConversionServiceFactory;
import org.springframework.core.convert.support.DefaultConversionService;
import org.springframework.data.convert.EntityInstantiator;
import org.springframework.data.couchbase.core.mapping.CouchbaseDocument;
import org.springframework.data.couchbase.core.mapping.CouchbaseList;
@@ -80,7 +80,7 @@ public class MappingCouchbaseConverter extends AbstractCouchbaseConverter
@SuppressWarnings("deprecation")
public MappingCouchbaseConverter(final MappingContext<? extends CouchbasePersistentEntity<?>,
CouchbasePersistentProperty> mappingContext) {
super(ConversionServiceFactory.createDefaultConversionService());
super(new DefaultConversionService());
this.mappingContext = mappingContext;
typeMapper = new DefaultCouchbaseTypeMapper(DefaultCouchbaseTypeMapper.DEFAULT_TYPE_KEY);