public abstract @interface

SerCustomWrite

implements Annotation
com.pnfsoftware.jeb.util.serialization.annotations.SerCustomWrite

Class Overview

This annotation is used to customize the serialization process of an object. It is executed when an object is about to be serialized. The implementation may:

  • update the object state, including SerId fields
  • call saveStandard() (mandatory)
  • optionally, update the object before returning

Required prototype:

 private void save(SerializerHelper writer) [throws IOException]
 
Note that the visibility MUST be private to make sure that sub-classes do not accidentally override a custom writer method of a super-class.

Summary

[Expand]
Inherited Methods
From interface java.lang.annotation.Annotation