Class IntegerToEnumConverterFactory

java.lang.Object
org.springframework.data.couchbase.core.convert.IntegerToEnumConverterFactory
All Implemented Interfaces:
ConverterFactory<Integer,Enum>

@ReadingConverter public class IntegerToEnumConverterFactory extends Object implements ConverterFactory<Integer,Enum>
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 AbstractCouchbaseConfiguration.customConversions(CryptoManager, ObjectMapper). This will take precedence over IntegerToEnumConverterFactory
Author:
Michael Reiche
  • Constructor Details

    • IntegerToEnumConverterFactory

      public IntegerToEnumConverterFactory(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details