@Target(value={ANNOTATION_TYPE,METHOD,FIELD,TYPE,PARAMETER}) @Retention(value=RUNTIME) public @interface JsonTypeIdResolver
TypeIdResolver
)
to be used by
TypeSerializer
s
and TypeDeserializer
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.
NOTE: since 2.4, applicable to properties as well (should have been long time ago, but problem only found then)
Modifier and Type | Required Element and Description |
---|---|
Class<? extends TypeIdResolver> |
value
Defines implementation class of
TypeIdResolver to use for
converting between external type id (type name) and actual
type of object. |
public abstract Class<? extends TypeIdResolver> value
TypeIdResolver
to use for
converting between external type id (type name) and actual
type of object.Copyright © 2017 JBoss by Red Hat. All rights reserved.