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 evaluate null pointer to their default value or to set default values. 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:
        {}