Package yapion.annotations.object
Annotation Type YAPIONPostDeserialization
-
@Retention(RUNTIME) @Target(METHOD) @Repeatable(YAPIONPostDeserializations.class) public @interface YAPIONPostDeserialization
This annotation describes one of the four steps in the process of deserialization. You can use this annotation for a method that corrects the data or object deserialized by YAPION. This can be useful to evaluatenull
pointer to their default value or to set values that depends on other fields. 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
-