Annotation Type YAPIONPreSerialization


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface YAPIONPreSerialization
    This annotation describes one of the three steps in the process of serialization. You can use this annotation for a method that remove the data or object before serialized by YAPION. This can be useful to remove and values from the serialized object that should be null. You can also use this to remove any data that is not serializable.

    Thr four Steps are:
    - PreSerialization method call
    - Serializing all fields (YAPIONSerializer)
    - PostSerialization method call

    The context describes the state in which the YAPIONSerializer 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:
        {}