de.bb.util
Interface SessionManager.Callback

All Known Implementing Classes:
ZipClassLoader
Enclosing class:
SessionManager

public static interface SessionManager.Callback

This interface is used by the SessionManager, which maintains objects which live a distinct time. To support the soft removeButAsk() function, an object might implement this interface. The callback function dontRemove will ve called before soft removal.


Method Summary
 boolean dontRemove(java.lang.Object key)
          Is called be the removeButAsk() function.
 

Method Detail

dontRemove

boolean dontRemove(java.lang.Object key)
Is called be the removeButAsk() function. If the implementation returns true, the object is not removed. The implementation may touch the object, to renew the sessions life time. If the session remains untouched, touch() is called by the SessionManager with its default life time.

Parameters:
key - the key which binds the session to the SessionManager.
Returns:
true to renew the session life time, false, to allow deletion of the session.