/** * Only used for serialization. The persist method is invoked before the serialization of the object. This allows * the object to prepare in some implementation specific way for the serialization process. */ @Persist private void prepare() { isValid = isValid(); }
@Persist public void persist() { throw new IllegalStateException("Simple substitute should never be written only read"); }
@Persist public void persist(Map map) { persisted = true; }