public class AvroJacksonDeserializers
extends com.fasterxml.jackson.databind.module.SimpleDeserializers
SpecificRecordBase types.
This class ensures that Jackson deserializes Avro class by using the generated builder classes
rather than by directly instantiating the generated value classes. This ensures that any fields
not specified in the input JSON will have their default values (if any) applied, rather than
being left null. It only works if there is a static nested class named @{code Builder} inside
the value class, with a build method; the default Avro generator templates produce these.
| Constructor and Description |
|---|
AvroJacksonDeserializers() |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonDeserializer<?> |
findBeanDeserializer(com.fasterxml.jackson.databind.JavaType type,
com.fasterxml.jackson.databind.DeserializationConfig config,
com.fasterxml.jackson.databind.BeanDescription beanDesc) |
public com.fasterxml.jackson.databind.JsonDeserializer<?> findBeanDeserializer(com.fasterxml.jackson.databind.JavaType type,
com.fasterxml.jackson.databind.DeserializationConfig config,
com.fasterxml.jackson.databind.BeanDescription beanDesc)
throws com.fasterxml.jackson.databind.JsonMappingException
findBeanDeserializer in interface com.fasterxml.jackson.databind.deser.DeserializersfindBeanDeserializer in class com.fasterxml.jackson.databind.module.SimpleDeserializerscom.fasterxml.jackson.databind.JsonMappingExceptionCopyright © 2020 Cerner Innovation, Inc.. All rights reserved.