java.lang.Object
tools.jackson.databind.jsontype.TypeResolverProvider
- All Implemented Interfaces:
Serializable
Abstraction used for allowing construction and registration of custom
TypeResolverBuilders, used in turn for actual construction of
TypeSerializers
and TypeDeserializers
for Polymorphic type handling.
At this point contains both API and default implementation.- Since:
- 3.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypeResolverBuilder<?>_constructStdTypeResolverBuilder(MapperConfig<?> config, JsonTypeInfo.Value typeInfo, JavaType baseType) protected TypeResolverBuilder<?>_findTypeResolver(MapperConfig<?> config, Annotated ann, JavaType baseType) findPropertyContentTypeDeserializer(DeserializationContext ctxt, AnnotatedMember accessor, JavaType containerType) findPropertyContentTypeSerializer(SerializationContext ctxt, AnnotatedMember accessor, JavaType containerType) findPropertyTypeDeserializer(DeserializationContext ctxt, AnnotatedMember accessor, JavaType baseType) findPropertyTypeSerializer(SerializationContext ctxt, AnnotatedMember accessor, JavaType baseType) findTypeDeserializer(DeserializationContext ctxt, JavaType baseType, AnnotatedClass classInfo) findTypeSerializer(SerializationContext ctxt, JavaType baseType, AnnotatedClass classInfo) Method for checking if given class has annotations that indicate that specific type resolver is to be used for handling instances of given type.
-
Field Details
-
NO_RESOLVER
-
-
Constructor Details
-
TypeResolverProvider
public TypeResolverProvider()
-
-
Method Details
-
findTypeSerializer
public TypeSerializer findTypeSerializer(SerializationContext ctxt, JavaType baseType, AnnotatedClass classInfo) Method for checking if given class has annotations that indicate that specific type resolver is to be used for handling instances of given type. This includes not only instantiating resolver builder, but also configuring it based on relevant annotations (not including ones checked with a call tofindSubtypes()- Parameters:
baseType- Base java type of value for which resolver is to be foundclassInfo- Introspected annotation information for the class (type)- Returns:
- Type resolver builder for given type, if one found; null if none
-
findTypeDeserializer
public TypeDeserializer findTypeDeserializer(DeserializationContext ctxt, JavaType baseType, AnnotatedClass classInfo) -
findPropertyTypeSerializer
public TypeSerializer findPropertyTypeSerializer(SerializationContext ctxt, AnnotatedMember accessor, JavaType baseType) -
findPropertyTypeDeserializer
public TypeDeserializer findPropertyTypeDeserializer(DeserializationContext ctxt, AnnotatedMember accessor, JavaType baseType) -
findPropertyContentTypeSerializer
public TypeSerializer findPropertyContentTypeSerializer(SerializationContext ctxt, AnnotatedMember accessor, JavaType containerType) -
findPropertyContentTypeDeserializer
public TypeDeserializer findPropertyContentTypeDeserializer(DeserializationContext ctxt, AnnotatedMember accessor, JavaType containerType) -
_findTypeResolver
protected TypeResolverBuilder<?> _findTypeResolver(MapperConfig<?> config, Annotated ann, JavaType baseType) -
_constructStdTypeResolverBuilder
protected TypeResolverBuilder<?> _constructStdTypeResolverBuilder(MapperConfig<?> config, JsonTypeInfo.Value typeInfo, JavaType baseType)
-