java.lang.Object
tools.jackson.databind.JacksonModule
tools.jackson.dataformat.avro.AvroModule
All Implemented Interfaces:
Serializable, tools.jackson.core.Versioned

public class AvroModule extends tools.jackson.databind.JacksonModule implements Serializable
Module that adds support for handling datatypes specific to the standard Java Avro library:
  • Support handling of Schema: remove from Avro lib generated types; serialize as (JSON) String for others
  • Add special AnnotationIntrospector that supports Apache Avro lib annotations
  • Support limited polymorphic handling of properties with nominal type of Object.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class tools.jackson.databind.JacksonModule

    tools.jackson.databind.JacksonModule.SetupContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected tools.jackson.databind.AnnotationIntrospector
     
    protected static final AvroAnnotationIntrospector
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    _addDeserializers(tools.jackson.databind.JacksonModule.SetupContext context)
     
    protected void
    _addIntrospector(tools.jackson.databind.JacksonModule.SetupContext context)
     
    protected void
    _addModifiers(tools.jackson.databind.JacksonModule.SetupContext context)
     
    protected void
    _addSerializers(tools.jackson.databind.JacksonModule.SetupContext context)
     
     
    void
    setupModule(tools.jackson.databind.JacksonModule.SetupContext context)
     
    tools.jackson.core.Version
     
    withAnnotationIntrospector(tools.jackson.databind.AnnotationIntrospector intr)
    Fluent method that configures this module instance

    Methods inherited from class tools.jackson.databind.JacksonModule

    getDependencies, getRegistrationId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INTR

      protected static final AvroAnnotationIntrospector INTR
    • _intr

      protected tools.jackson.databind.AnnotationIntrospector _intr
  • Constructor Details

    • AvroModule

      public AvroModule()
  • Method Details

    • getModuleName

      public String getModuleName()
      Specified by:
      getModuleName in class tools.jackson.databind.JacksonModule
    • version

      public tools.jackson.core.Version version()
      Specified by:
      version in interface tools.jackson.core.Versioned
      Specified by:
      version in class tools.jackson.databind.JacksonModule
    • withAnnotationIntrospector

      public AvroModule withAnnotationIntrospector(tools.jackson.databind.AnnotationIntrospector intr)
      Fluent method that configures this module instance
    • setupModule

      public void setupModule(tools.jackson.databind.JacksonModule.SetupContext context)
      Specified by:
      setupModule in class tools.jackson.databind.JacksonModule
    • _addIntrospector

      protected void _addIntrospector(tools.jackson.databind.JacksonModule.SetupContext context)
    • _addModifiers

      protected void _addModifiers(tools.jackson.databind.JacksonModule.SetupContext context)
    • _addDeserializers

      protected void _addDeserializers(tools.jackson.databind.JacksonModule.SetupContext context)
    • _addSerializers

      protected void _addSerializers(tools.jackson.databind.JacksonModule.SetupContext context)