Top Description Methods
tools.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, tools.jackson.databind.jsontype.TypeIdResolver

Annotation that can be used to plug a custom type identifier handler (TypeIdResolver) to be used by tools.jackson.databind.jsontype.TypeSerializers and tools.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.

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.