@Singleton @Internal public class JacksonConverterRegistrar extends Object implements TypeConverterRegistrar
Modifier | Constructor and Description |
---|---|
protected |
JacksonConverterRegistrar(BeanProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapper,
ConversionService<?> conversionService)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected TypeConverter<com.fasterxml.jackson.databind.node.ArrayNode,Iterable> |
arrayNodeToIterableConverter() |
protected TypeConverter<com.fasterxml.jackson.databind.node.ArrayNode,Object[]> |
arrayNodeToObjectConverter() |
protected TypeConverter<com.fasterxml.jackson.databind.JsonNode,Object> |
jsonNodeToObjectConverter() |
protected TypeConverter<com.fasterxml.jackson.databind.node.ObjectNode,ConvertibleValues> |
objectNodeToConvertibleValuesConverter() |
protected TypeConverter<Object,com.fasterxml.jackson.databind.JsonNode> |
objectToJsonNodeConverter() |
void |
register(ConversionService<?> conversionService)
Interface for registrars of
TypeConverter instances. |
@Inject protected JacksonConverterRegistrar(BeanProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapper, ConversionService<?> conversionService)
objectMapper
- The object mapper providerconversionService
- The conversion servicepublic void register(ConversionService<?> conversionService)
TypeConverterRegistrar
TypeConverter
instances.register
in interface TypeConverterRegistrar
conversionService
- The ConversionService
protected TypeConverter<Object,com.fasterxml.jackson.databind.JsonNode> objectToJsonNodeConverter()
protected TypeConverter<com.fasterxml.jackson.databind.node.ObjectNode,ConvertibleValues> objectNodeToConvertibleValuesConverter()
protected TypeConverter<com.fasterxml.jackson.databind.JsonNode,Object> jsonNodeToObjectConverter()
protected TypeConverter<com.fasterxml.jackson.databind.node.ArrayNode,Iterable> arrayNodeToIterableConverter()
protected TypeConverter<com.fasterxml.jackson.databind.node.ArrayNode,Object[]> arrayNodeToObjectConverter()