01: /*
02: * de.jwic.events.SessionListener
03: * Created on 20.10.2004
04: * $Id: SessionListener.java,v 1.2 2006/09/25 13:29:39 lordsam Exp $
05: */
06: package de.jwic.events;
07:
08: import java.io.Serializable;
09:
10: /**
11: * Event listener for the SessionEvent. This event is fired
12: * by the SessionContext before the session is serialized, after the
13: * session has been deserialized and when the session has been re-activated.
14: *
15: * @author Florian Lippisch
16: * @version $Revision: 1.2 $
17: */
18: public interface SessionListener extends Serializable {
19:
20: /**
21: * Invoked when a SessionContext that is configured as a SingleSession
22: * application is reused.
23: */
24: public void sessionReused(SessionEvent event);
25:
26: /**
27: * Invoked before the session is serialized.
28: */
29: public void beforeSerialization(SessionEvent event);
30:
31: /**
32: * Invoked after the whole session has been deserialized.
33: */
34: public void afterDeserialization(SessionEvent event);
35:
36: /**
37: * Invoked when the session starts. This happens after the root control has been added.
38: * @since 3.0.0
39: * @param event
40: */
41: public void sessionStarted(SessionEvent event);
42:
43: /**
44: * Invoked when the session is stopped. This is the case when the session either
45: * times out or the exit() method is called.
46: * @since 3.0.0
47: * @param event
48: */
49: public void sessionStopped(SessionEvent event);
50:
51: }
|