Annotation Type YAPIONPostDeserialization


  • @Retention(RUNTIME)
    @Target(METHOD)
    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 evaluate null pointer to their default value or to set values that depends on other fields. This annotation is useful if you use YAPIONData or YAPIONObjenesis as annotations.

    The four Steps are:
    - Constructing the object (either by using the Constructor or ObjenesisBase)
    - PreDeserialization method call
    - Deserializing all fields (YAPIONDeserializer)
    - PostDeserialization method call

    The context describes the state in which the YAPIONDeserializer should be for this annotation to take effect.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] context  
    • Element Detail

      • context

        java.lang.String[] context
        Default:
        {}