Class AvroTypeIdResolver

java.lang.Object
tools.jackson.databind.jsontype.impl.TypeIdResolverBase
tools.jackson.databind.jsontype.impl.ClassNameIdResolver
tools.jackson.dataformat.avro.AvroTypeIdResolver
All Implemented Interfaces:
Serializable, tools.jackson.databind.jsontype.TypeIdResolver

public class AvroTypeIdResolver extends tools.jackson.databind.jsontype.impl.ClassNameIdResolver
TypeIdResolver for Avro type IDs embedded in schemas. Avro generally uses class names, but we want to also support named subtypes so that developers can easily remap the embedded type IDs to a different runtime class.
See Also:
  • Field Summary

    Fields inherited from class tools.jackson.databind.jsontype.impl.ClassNameIdResolver

    _allowedSubtypes, _subTypeValidator

    Fields inherited from class tools.jackson.databind.jsontype.impl.TypeIdResolverBase

    _baseType
  • Constructor Summary

    Constructors
    Constructor
    Description
    AvroTypeIdResolver(tools.jackson.databind.JavaType baseType, tools.jackson.databind.jsontype.PolymorphicTypeValidator stv, Collection<tools.jackson.databind.jsontype.NamedType> subTypes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected tools.jackson.databind.JavaType
    _typeFromId(tools.jackson.databind.DatabindContext ctxt, String id)
     

    Methods inherited from class tools.jackson.databind.jsontype.impl.ClassNameIdResolver

    _idFrom, construct, getDescForKnownTypeIds, getMechanism, idFromValue, idFromValueAndType, typeFromId

    Methods inherited from class tools.jackson.databind.jsontype.impl.TypeIdResolverBase

    _resolveToParentAsNecessary, idFromBaseType, init

    Methods inherited from class java.lang.Object

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

    • AvroTypeIdResolver

      public AvroTypeIdResolver(tools.jackson.databind.JavaType baseType, tools.jackson.databind.jsontype.PolymorphicTypeValidator stv, Collection<tools.jackson.databind.jsontype.NamedType> subTypes)
  • Method Details

    • _typeFromId

      protected tools.jackson.databind.JavaType _typeFromId(tools.jackson.databind.DatabindContext ctxt, String id)
      Overrides:
      _typeFromId in class tools.jackson.databind.jsontype.impl.ClassNameIdResolver