org.zkoss.zk.ui.util
Interface SessionSerializationListener


public interface SessionSerializationListener

Used to notify an object stored in a session, when the session is going to be serialized or has been deserialized.

When a session is going to be serialized, it checks every attribute (Session.setAttribute(java.lang.String, java.lang.Object)) to see whether this interface is implemented. If implemented, willSerialize(org.zkoss.zk.ui.Session) will be called. Similarly, didActivate(org.zkoss.zk.ui.Session) is called when the session has just been activated.

Since:
2.4.0
Author:
tomyeh

Method Summary
 void didActivate(Session session)
          Called when a session has just been activated.
 void didDeserialize(Session session)
          Deprecated. As of release 3.0.8, no way to find the right moment to call back this method.
 void willPassivate(Session session)
          Called when a session is about to be passivated.
 void willSerialize(Session session)
          Called when a session is going to serialize this object.
 

Method Detail

willSerialize

void willSerialize(Session session)
Called when a session is going to serialize this object.


didDeserialize

void didDeserialize(Session session)
Deprecated. As of release 3.0.8, no way to find the right moment to call back this method.

Called when a session has de-serialized this object back.


didActivate

void didActivate(Session session)
Called when a session has just been activated.

Since:
3.0.8

willPassivate

void willPassivate(Session session)
Called when a session is about to be passivated.

Since:
3.0.8


Copyright © 2005-2009 Potix Corporation. All Rights Reserved.