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

public @Interface JsonTypeIdResolver

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

Annotation that can be used to plug a custom type identifier handler (TypeIdResolver) to be used by com.fasterxml.jackson.databind.jsontype.TypeSerializers and com.fasterxml.jackson.databind.jsontype.TypeDeserializers for converting between java types and type id included in JSON content. In simplest cases this can be a simple class with static mapping between type names and matching classes.

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 TypeIdResolver>
value()

Defines implementation class of TypeIdResolver to use for converting between external type id (type name) and actual type of object.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

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

Defines implementation class of TypeIdResolver to use for converting between external type id (type name) and actual type of object.