org.zkoss.zk.ui.util
Interface SessionCleanup


public interface SessionCleanup

Used to clean up a session.

How this interface is used.

  1. First, you specify a class that implements this interface in WEB-INF/zk.xml as a listener.
  2. Then, even time ZK loader is destroying a session, an instance of the specified class is instantiated and cleanup(org.zkoss.zk.ui.Session) is called.

Author:
tomyeh

Method Summary
 void cleanup(Session sess)
          called when a session is about to be destroyed.
 

Method Detail

cleanup

void cleanup(Session sess)
             throws java.lang.Exception
called when a session is about to be destroyed.

If this method throws an exception, the error message is only logged (user won't see it).

Throws:
java.lang.Exception


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo