com.fasterxml.jackson.databind.annotation
Annotation Type JsonTypeResolver
@Target(value={ANNOTATION_TYPE,TYPE})
@Retention(value=RUNTIME)
public @interface JsonTypeResolver
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)
value
public abstract Class<? extends TypeResolverBuilder<?>> value
- Defines implementation class of
TypeResolverBuilder
which is used to construct
actual TypeDeserializer
and TypeDeserializer
instances that handle reading and writing addition type information needed to support polymorphic
deserialization.
Copyright © 2012 FasterXML. All Rights Reserved.