1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.jetspeed.services.statemanager;
19
20
21
22
23 /***
24 * <p>SessionStateBindingListener is an interface for objects that wish to be
25 * notified when they are bound to and unbound from a SessionState managed by the
26 * Jetspeed SessionManagerService.</p>
27 * <p>This is loosely modeled on the HttpSessionBindingListener.</p>
28 * @version $Revision: 1.2 $
29 * @see org.apache.jetspeed.services.statemanager.StateManagerService
30 * @author <a href="mailto:ggolden@apache.org">Glenn R. Golden</a>
31 */
32 public interface SessionStateBindingListener
33 {
34 /***
35 * Accept notification that this object has been bound as a SessionState attribute.
36 * @param sessionStateKey The id of the session state which holds the attribute.
37 * @param attributeName The id of the attribute to which this object is now the value.
38 */
39 public void valueBound(String sessionStateKey, String attributeName);
40
41 /***
42 * Accept notification that this object has been removed from a SessionState attribute.
43 * @param sessionStateKey The id of the session state which held the attribute.
44 * @param attributeName The id of the attribute to which this object was the value.
45 */
46 public void valueUnbound(String sessionStateKey, String attributeName);
47
48 }
49
50 /***********************************************************************************
51 *
52 * $Header: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/SessionStateBindingListener.java,v 1.2 2004/02/23 03:38:28 jford Exp $
53 *
54 **********************************************************************************/
55