Package yapion.annotations.object
Annotation Type YAPIONPreDeserialization
-
@Retention(RUNTIME) @Target(METHOD) @Repeatable(YAPIONPreDeserializations.class) public @interface YAPIONPreDeserialization
This annotation describes one of the four steps in the process of deserialization. You can use this annotation for a method that defaults the data or object before deserialized by YAPION. This can be useful to evaluatenull
pointer to their default value or to set default values. This annotation is useful if you useYAPIONData
orYAPIONObjenesis
as annotations.
The four Steps are:
- Constructing the object (either by using the Constructor orObjenesisBase
)
- PreDeserialization method call
- Deserializing all fields (YAPIONDeserializer
)
- PostDeserialization method call
The context describes the state in which theYAPIONDeserializer
should be for this annotation to take effect.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String[]
context
-