|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
JsonDeserialize
instead
@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) public @interface JsonUseDeserializer
Annotation that can be used to explicitly mark
JsonDeserializer
used to deserialize
instances of the class annotated, or the value of property
that is modifier using (setter) method annotated.
There is a special marker Class (NoClass
) that can be used to
indicate that no explicit deserializer is to be used -- such a
work-around is needed because 'null' can not be used with
annotations (either as default or explicit value)
Note that although type deserializers do have generic type information,
that information is not available during processing. As a result,
only thing that can be checked during annotation processing
is that class used does indeed implement
JsonDeserializer
; but not whether
it declares that it can handle type given.
Note also that this method does NOT imply that the associated
method (when applied to one) is implicitly a setter:
rather, it must be recognized as one either due to its naming,
or by associated JsonSetter
annotation.
Optional Element Summary | |
---|---|
Class<?> |
value
Deprecated. Class to instantiate to get the serializer instance used for serializing associated value. |
public abstract Class<?> value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |