@Singleton public class JacksonConverterRegistrar extends java.lang.Object implements TypeConverterRegistrar
Modifier | Constructor and Description |
---|---|
protected |
JacksonConverterRegistrar(javax.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> objectMapper,
javax.inject.Provider<BeanPropertyBinder> beanPropertyBinder,
ConversionService<?> conversionService)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected TypeConverter<com.fasterxml.jackson.databind.node.ArrayNode,java.lang.Iterable> |
arrayNodeToIterableConverter() |
protected TypeConverter<com.fasterxml.jackson.databind.node.ArrayNode,java.lang.Object[]> |
arrayNodeToObjectConverter() |
protected TypeConverter<com.fasterxml.jackson.databind.JsonNode,java.lang.Object> |
jsonNodeToObjectConverter() |
protected TypeConverter<java.util.Map,java.lang.Object> |
mapToObjectConverter() |
protected TypeConverter<com.fasterxml.jackson.databind.node.ObjectNode,ConvertibleValues> |
objectNodeToConvertibleValuesConverter() |
protected TypeConverter<java.lang.Object,com.fasterxml.jackson.databind.JsonNode> |
objectToJsonNodeConverter() |
void |
register(ConversionService<?> conversionService)
Interface for registrars of
TypeConverter instances. |
protected JacksonConverterRegistrar(javax.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> objectMapper, javax.inject.Provider<BeanPropertyBinder> beanPropertyBinder, ConversionService<?> conversionService)
objectMapper
- The object mapper providerbeanPropertyBinder
- The bean property binder providerconversionService
- The conversion servicepublic void register(ConversionService<?> conversionService)
TypeConverterRegistrar
TypeConverter
instances.register
in interface TypeConverterRegistrar
conversionService
- The ConversionService
protected TypeConverter<java.util.Map,java.lang.Object> mapToObjectConverter()
protected TypeConverter<java.lang.Object,com.fasterxml.jackson.databind.JsonNode> objectToJsonNodeConverter()
protected TypeConverter<com.fasterxml.jackson.databind.node.ObjectNode,ConvertibleValues> objectNodeToConvertibleValuesConverter()
protected TypeConverter<com.fasterxml.jackson.databind.JsonNode,java.lang.Object> jsonNodeToObjectConverter()
protected TypeConverter<com.fasterxml.jackson.databind.node.ArrayNode,java.lang.Iterable> arrayNodeToIterableConverter()
protected TypeConverter<com.fasterxml.jackson.databind.node.ArrayNode,java.lang.Object[]> arrayNodeToObjectConverter()