@Retention(value=RUNTIME) @Target(value={TYPE,FIELD,METHOD}) @Repeatable(value=TypeSerializers.class) public @interface TypeSerializer
| Modifier and Type | Required Element and Description |
|---|---|
Class<? extends CustomSerializer> |
value
The serializer to use.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
isGeneral
Specify if the serializer has to be used more generally:
I isGeneral is true the annotation will apply for any attribute in any class having the source type
of the serializer, else it only apply to attributes of the class if the annotation is on a class,
or only to an attribute if the annotation is on an attribute.
|
public abstract Class<? extends CustomSerializer> value
public abstract boolean isGeneral
Copyright © 2019. All rights reserved.