Top Description Methods
com.fasterxml.jackson.databind.annotation

public @Interface JsonTypeResolver

extends Annotation
Annotations
@Target:ANNOTATION_TYPE, METHOD, FIELD, TYPE, PARAMETER
@Retention:RUNTIME
@JacksonAnnotation
Imports
java.lang.annotation.*, com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder

Annotation that can be used to explicitly define custom resolver used for handling serialization and deserialization of type information, needed for handling of polymorphic types (or sometimes just for linking abstract types to concrete types)

Note

since 2.4, applicable to properties as well (should have been long time ago, but problem only found then)

Method Summary

Modifier and TypeMethod and Description
public Class<? extends TypeResolverBuilder<?>>
value()

Defines implementation class of TypeResolverBuilder which is used to construct actual com.fasterxml.jackson.databind.jsontype.TypeDeserializer and com.fasterxml.jackson.databind.jsontype.TypeDeserializer instances that handle reading and writing addition type information needed to support polymorphic deserialization.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<? extends TypeResolverBuilder<?>> value()

Defines implementation class of TypeResolverBuilder which is used to construct actual com.fasterxml.jackson.databind.jsontype.TypeDeserializer and com.fasterxml.jackson.databind.jsontype.TypeDeserializer instances that handle reading and writing addition type information needed to support polymorphic deserialization.