committed by
mikereiche
parent
0030214aa1
commit
4249f77fce
@@ -29,7 +29,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
/**
|
||||
* Reading Converter factory for Enums. This differs from the one provided in org.springframework.core.convert.support
|
||||
* by getting the result from the jackson objectmapper (which will process @JsonValue annotations) This is registered in
|
||||
* {@link org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration#customConversions(CryptoManager)}.
|
||||
* {@link org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration#customConversions(CryptoManager, ObjectMapper)}.
|
||||
*
|
||||
* @author Michael Reiche
|
||||
*/
|
||||
|
||||
@@ -38,7 +38,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
* There can only be one propertyValueConverter for a property. Although there maybe be multiple annotations,
|
||||
* getConverter(property) only returns one converter (a ChainedPropertyValueConverter might be useful). Note that
|
||||
* valueConversions.afterPropertiesSet() (see
|
||||
* {@link org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration#customConversions(CryptoManager)}
|
||||
* {@link org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration#customConversions(CryptoManager, ObjectMapper)}
|
||||
* encapsulates this in a CachingPropertyValueConverterFactory which caches by 'property'. Although
|
||||
* CachingPropertyValueConverterFactory does have the functionality to cache by a type, it only caches by the type
|
||||
* specified on an @ValueConverter annotation.To avoid having identical converter instances for each instance of a class
|
||||
|
||||
@@ -29,7 +29,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
/**
|
||||
* Reading Converter factory for Enums. This differs from the one provided in org.springframework.core.convert.support
|
||||
* by getting the result from the jackson objectmapper (which will process @JsonValue annotations) This is registered in
|
||||
* {@link org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration#customConversions(CryptoManager)}.
|
||||
* {@link org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration#customConversions(CryptoManager, ObjectMapper)}.
|
||||
* This will take precedence over {@link org.springframework.core.convert.support.IntegerToEnumConverterFactory}
|
||||
*
|
||||
* @author Michael Reiche
|
||||
|
||||
@@ -869,7 +869,7 @@ public class MappingCouchbaseConverter extends AbstractCouchbaseConverter implem
|
||||
/**
|
||||
* This does process PropertyValueConversions
|
||||
*
|
||||
* @param value
|
||||
* @param property
|
||||
* @param accessor
|
||||
* @param processValueConverter
|
||||
* @return
|
||||
|
||||
@@ -27,7 +27,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
/**
|
||||
* Reading Converter factory for Enums. This differs from the one provided in org.springframework.core.convert.support
|
||||
* by getting the result from the jackson objectmapper (which will process @JsonValue annotations) This is registered in
|
||||
* {@link org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration#customConversions(CryptoManager)}.
|
||||
* {@link org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration#customConversions(CryptoManager, ObjectMapper)}.
|
||||
* This will take precedence over {@link org.springframework.core.convert.support.StringToEnumConverterFactory}
|
||||
*
|
||||
* @author Michael Reiche
|
||||
|
||||
Reference in New Issue
Block a user