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, _subTypeValidatorFields inherited from class tools.jackson.databind.jsontype.impl.TypeIdResolverBase
_baseType -
Constructor Summary
ConstructorsConstructorDescriptionAvroTypeIdResolver(tools.jackson.databind.JavaType baseType, tools.jackson.databind.jsontype.PolymorphicTypeValidator stv, Collection<tools.jackson.databind.jsontype.NamedType> subTypes) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, typeFromIdMethods inherited from class tools.jackson.databind.jsontype.impl.TypeIdResolverBase
_resolveToParentAsNecessary, idFromBaseType, init
-
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:
_typeFromIdin classtools.jackson.databind.jsontype.impl.ClassNameIdResolver
-