public static class ObjectMapper.DefaultTypeResolverBuilder extends StdTypeResolverBuilder implements java.io.Serializable
TypeResolverBuilder
that provides type resolver builders
used with so-called "default typing"
(see ObjectMapper.enableDefaultTyping()
for details).
Type resolver construction is based on configuration: implementation takes care of only providing builders in cases where type information should be applied. This is important since build calls may be sent for any and all types, and type information should NOT be applied to all of them.
Constructor and Description |
---|
DefaultTypeResolverBuilder(ObjectMapper.DefaultTyping t) |
Modifier and Type | Method and Description |
---|---|
TypeDeserializer |
buildTypeDeserializer(DeserializationConfig config,
JavaType baseType,
java.util.Collection<NamedType> subtypes)
Method for building type deserializer based on current configuration
of this builder.
|
TypeSerializer |
buildTypeSerializer(SerializationConfig config,
JavaType baseType,
java.util.Collection<NamedType> subtypes)
Method for building type serializer based on current configuration
of this builder.
|
boolean |
useForType(JavaType t)
Method called to check if the default type handler should be
used for given type.
|
defaultImpl, getDefaultImpl, getTypeProperty, inclusion, init, isTypeIdVisible, noTypeInfoBuilder, typeIdVisibility, typeProperty
public DefaultTypeResolverBuilder(ObjectMapper.DefaultTyping t)
public TypeDeserializer buildTypeDeserializer(DeserializationConfig config, JavaType baseType, java.util.Collection<NamedType> subtypes)
TypeResolverBuilder
buildTypeDeserializer
in interface TypeResolverBuilder<StdTypeResolverBuilder>
buildTypeDeserializer
in class StdTypeResolverBuilder
baseType
- Base type that constructed resolver will
handle; super type of all types it will be used for.subtypes
- Known subtypes of the base type.public TypeSerializer buildTypeSerializer(SerializationConfig config, JavaType baseType, java.util.Collection<NamedType> subtypes)
TypeResolverBuilder
buildTypeSerializer
in interface TypeResolverBuilder<StdTypeResolverBuilder>
buildTypeSerializer
in class StdTypeResolverBuilder
baseType
- Base type that constructed resolver will
handle; super type of all types it will be used for.public boolean useForType(JavaType t)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"