KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jetspeed > services > statemanager > SessionStateBindingListener


1 /*
2  * Copyright 2000-2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 // package
18
package org.apache.jetspeed.services.statemanager;
19
20 // imports
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 JavaDoc sessionStateKey, String JavaDoc 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 JavaDoc sessionStateKey, String JavaDoc attributeName);
47
48 } // interface SessionStateBindingListener
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
56
Popular Tags