Annotation Type JsonTypeIdResolver
-
@Target(TYPE) @Retention(RUNTIME) public @interface JsonTypeIdResolver
Annotation that can be used to plug a custom type identifier handler (TypeIdResolver
) to be used byTypeSerializer
s andTypeDeserializer
s 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.- Since:
- 1.5
- Author:
- tatu
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends TypeIdResolver>
value
Defines implementation class ofTypeIdResolver
to use for converting between external type id (type name) and actual type of object.
-
-
-
Element Detail
-
value
java.lang.Class<? extends TypeIdResolver> value
Defines implementation class ofTypeIdResolver
to use for converting between external type id (type name) and actual type of object.
-
-