java.lang.Object
tools.jackson.databind.JacksonModule
tools.jackson.dataformat.avro.AvroModule
- All Implemented Interfaces:
Serializable,tools.jackson.core.Versioned
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
AnnotationIntrospectorthat supports Apache Avro lib annotations - Support limited polymorphic handling of properties with nominal type
of
Object.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class tools.jackson.databind.JacksonModule
tools.jackson.databind.JacksonModule.SetupContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected tools.jackson.databind.AnnotationIntrospectorprotected static final AvroAnnotationIntrospector -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) voidsetupModule(tools.jackson.databind.JacksonModule.SetupContext context) tools.jackson.core.Versionversion()withAnnotationIntrospector(tools.jackson.databind.AnnotationIntrospector intr) Fluent method that configures this module instanceMethods inherited from class tools.jackson.databind.JacksonModule
getDependencies, getRegistrationId
-
Field Details
-
INTR
-
_intr
protected tools.jackson.databind.AnnotationIntrospector _intr
-
-
Constructor Details
-
AvroModule
public AvroModule()
-
-
Method Details
-
getModuleName
- Specified by:
getModuleNamein classtools.jackson.databind.JacksonModule
-
version
public tools.jackson.core.Version version()- Specified by:
versionin interfacetools.jackson.core.Versioned- Specified by:
versionin classtools.jackson.databind.JacksonModule
-
withAnnotationIntrospector
Fluent method that configures this module instance -
setupModule
public void setupModule(tools.jackson.databind.JacksonModule.SetupContext context) - Specified by:
setupModulein classtools.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)
-