portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggol...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager JetspeedStateManagerService.java SessionState.java
Date Fri, 03 May 2002 17:40:44 GMT
ggolden     02/05/03 10:40:44

  Modified:    src/java/org/apache/jetspeed/services/statemanager
                        JetspeedStateManagerService.java SessionState.java
  Log:
  Added a cover to the StateManagerService's retireState() method
  in SessionState, so that a state user can retire a state at will, easily.
  
  Revision  Changes    Path
  1.2       +12 -3     jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/JetspeedStateManagerService.java
  
  Index: JetspeedStateManagerService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/JetspeedStateManagerService.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JetspeedStateManagerService.java	3 May 2002 15:04:38 -0000	1.1
  +++ JetspeedStateManagerService.java	3 May 2002 17:40:44 -0000	1.2
  @@ -1,6 +1,6 @@
   /**********************************************************************************
   *
  -* $Header: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/JetspeedStateManagerService.java,v
1.1 2002/05/03 15:04:38 ggolden Exp $
  +* $Header: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/JetspeedStateManagerService.java,v
1.2 2002/05/03 17:40:44 ggolden Exp $
   *
   * ====================================================================
    * The Apache Software License, Version 1.1
  @@ -77,7 +77,7 @@
   * <p>SessionState is stored in a HashMap, keyed by state key.  In the HashMap, each
   * SessionState has another HashMap, storing the names and values of the state info. </p>
   * <p>See the proposal: jakarta-jetspeed/proposals/StateManager.txt for more details.</p>
  -* @version $Revision: 1.1 $
  +* @version $Revision: 1.2 $
   * @see org.apache.jetspeed.services.statemanager.StateManagerService
   * @see org.apache.jetspeed.services.statemanager.SessionState
   * @author <a href="mailto:ggolden@apache.org">Glenn R. Golden</a>
  @@ -347,13 +347,22 @@
   
           }   // getKey
   
  +        /**
  +        * Retire, forget about and clean up this state.
  +        */
  +        public void retire()
  +        {
  +            m_service.retireState(m_key);
  +
  +        }   // retire
  +
       }   // class MySessionState
   
   }   // JetspeedStateManagerService
   
   /**********************************************************************************
   *
  -* $Header: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/JetspeedStateManagerService.java,v
1.1 2002/05/03 15:04:38 ggolden Exp $
  +* $Header: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/JetspeedStateManagerService.java,v
1.2 2002/05/03 17:40:44 ggolden Exp $
   *
   **********************************************************************************/
   
  
  
  
  1.2       +8 -3      jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/SessionState.java
  
  Index: SessionState.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/SessionState.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SessionState.java	3 May 2002 15:04:38 -0000	1.1
  +++ SessionState.java	3 May 2002 17:40:44 -0000	1.2
  @@ -1,6 +1,6 @@
   /**********************************************************************************
   *
  -* $Header: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/SessionState.java,v
1.1 2002/05/03 15:04:38 ggolden Exp $
  +* $Header: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/SessionState.java,v
1.2 2002/05/03 17:40:44 ggolden Exp $
   *
   * ====================================================================
    * The Apache Software License, Version 1.1
  @@ -66,7 +66,7 @@
   * <p>SessionState is an interface for objects that provide name - value information
sets
   * with a unique key that can be used in the StateManager service</p>
   * <p>See the proposal: jakarta-jetspeed/proposals/StateManager.txt for more details.</p>
  -* @version $Revision: 1.1 $
  +* @version $Revision: 1.2 $
   * @see org.apache.jetspeed.services.statemanager.StateManagerService
   * @author <a href="mailto:ggolden@apache.org">Glenn R. Golden</a>
   */
  @@ -109,11 +109,16 @@
       */
       public String getKey();
   
  +    /**
  +    * Retire, forget about and clean up this state.
  +    */
  +    public void retire();
  +
   }   // interface SessionState
   
   /**********************************************************************************
   *
  -* $Header: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/SessionState.java,v
1.1 2002/05/03 15:04:38 ggolden Exp $
  +* $Header: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/statemanager/SessionState.java,v
1.2 2002/05/03 17:40:44 ggolden Exp $
   *
   **********************************************************************************/
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message