Top Description Fields Constructors Methods
com.fasterxml.jackson.dataformat.avro

public Class AvroTypeIdResolver

extends ClassNameIdResolver
Class Inheritance
Imports
java.io.IOException, java.util.Collection, .HashMap, .Map, com.fasterxml.jackson.databind.DatabindContext, .JavaType, com.fasterxml.jackson.databind.exc.InvalidTypeIdException, com.fasterxml.jackson.databind.jsontype.NamedType, .PolymorphicTypeValidator, com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver, com.fasterxml.jackson.databind.type.TypeFactory

com.fasterxml.jackson.databind.jsontype.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.
Since
2.9

Field Summary

Modifier and TypeField and Description
private final Map<String, Class<?>>
private static final long
Inherited from com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver:
_subTypeValidator

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
protected JavaType
public void
Inherited from com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver:
_idFromconstructgetDescForKnownTypeIdsgetMechanismidFromValueidFromValueAndTypetypeFromId

Field Detail

_idTypesback to summary
private final Map<String, Class<?>> _idTypes
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver.serialVersionUID.

Constructor Detail

AvroTypeIdResolverback to summary
public AvroTypeIdResolver(JavaType baseType, TypeFactory typeFactory, PolymorphicTypeValidator ptv, Collection<NamedType> subTypes)
AvroTypeIdResolverback to summary
public AvroTypeIdResolver(JavaType baseType, TypeFactory typeFactory, PolymorphicTypeValidator ptv)

Method Detail

_typeFromIdback to summary
protected JavaType _typeFromId(String id, DatabindContext ctxt) throws IOException

Overrides com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver._typeFromId.

Annotations
@Override
registerSubtypeback to summary
public void registerSubtype(Class<?> type, String name)

Overrides com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver.registerSubtype.

Annotations
@Override