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

public Class AvroTypeResolverBuilder

extends StdTypeResolverBuilder
Class Inheritance
Imports
java.util.Collection, com.fasterxml.jackson.annotation.JsonTypeInfo, com.fasterxml.jackson.databind.DeserializationConfig, .JavaType, .SerializationConfig, com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.jsontype.NamedType, .PolymorphicTypeValidator, .TypeDeserializer, .TypeIdResolver, .TypeSerializer, com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder

Since
2.9

Field Summary

Inherited from com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder:
_customIdResolver_defaultImpl_idType_includeAs_requireTypeIdForSubtypes_typeIdVisible_typeProperty

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TypeDeserializer
buildTypeDeserializer(DeserializationConfig config, JavaType
Base type that constructed resolver will handle; super type of all types it will be used for.
baseType
,
Collection<NamedType>
Known subtypes of the base type.
subtypes
)

Overrides com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder.buildTypeDeserializer.

Implements com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder.buildTypeDeserializer.

Method for building type deserializer based on current configuration of this builder.

public TypeSerializer
buildTypeSerializer(SerializationConfig config, JavaType
Base type that constructed resolver will handle; super type of all types it will be used for.
baseType
,
Collection<NamedType> subtypes)

Overrides com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder.buildTypeSerializer.

Implements com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder.buildTypeSerializer.

Method for building type serializer based on current configuration of this builder.

protected TypeIdResolver
idResolver(MapperConfig<?> config, JavaType baseType, PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes, boolean forSer, boolean forDeser)

Overrides com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder.idResolver.

Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration.

Inherited from com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder:
_hasTypeResolver_propName_strictTypeIdHandlingallowPrimitiveTypesdefaultImpldefineDefaultImplgetDefaultImplgetTypePropertyinclusioninitinitisTypeIdVisiblenoTypeInfoBuilderreportInvalidBaseTypesubTypeValidatortypeIdVisibilitytypePropertyverifyBaseTypeValiditywithDefaultImplwithSettings

Constructor Detail

AvroTypeResolverBuilderback to summary
public AvroTypeResolverBuilder()

Method Detail

buildTypeDeserializerback to summary
public TypeDeserializer buildTypeDeserializer(DeserializationConfig config, JavaType baseType, Collection<NamedType> subtypes)

Overrides com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder.buildTypeDeserializer.

Implements com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder.buildTypeDeserializer.

Doc from com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder.buildTypeDeserializer.

Method for building type deserializer based on current configuration of this builder.

Parameters
baseType:JavaType

Base type that constructed resolver will handle; super type of all types it will be used for.

subtypes:Collection<NamedType>

Known subtypes of the base type.

Annotations
@Override
buildTypeSerializerback to summary
public TypeSerializer buildTypeSerializer(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes)

Overrides com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder.buildTypeSerializer.

Implements com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder.buildTypeSerializer.

Doc from com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder.buildTypeSerializer.

Method for building type serializer based on current configuration of this builder.

Parameters
baseType:JavaType

Base type that constructed resolver will handle; super type of all types it will be used for.

Annotations
@Override
idResolverback to summary
protected TypeIdResolver idResolver(MapperConfig<?> config, JavaType baseType, PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes, boolean forSer, boolean forDeser)

Overrides com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder.idResolver.

Doc from com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder.idResolver.

Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration.

Annotations
@Override