kief        01/04/08 00:57:57

  Modified:    catalina/src/share/org/apache/catalina Manager.java
  Log:
  Refactoring to eliminate dependencies by StandardManager, ManagerBase,
  and StandardSession on one another: each should only depend on methods
  found in the interface definitions for Manager and Session.
  
  Added add() and remove(): all Manager implementations must implement
  these methods to allow sessions to be added to and removed from their
  list of active sessions.
  
  Revision  Changes    Path
  1.3       +20 -4     
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Manager.java
  
  Index: Manager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Manager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Manager.java      2000/10/14 21:43:53     1.2
  +++ Manager.java      2001/04/08 07:57:57     1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Manager.java,v 1.2 
2000/10/14 21:43:53 craigmcc Exp $
  - * $Revision: 1.2 $
  - * $Date: 2000/10/14 21:43:53 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Manager.java,v 1.3 
2001/04/08 07:57:57 kief Exp $
  + * $Revision: 1.3 $
  + * $Date: 2001/04/08 07:57:57 $
    *
    * ====================================================================
    *
  @@ -86,7 +86,7 @@
    * </ul>
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.2 $ $Date: 2000/10/14 21:43:53 $
  + * @version $Revision: 1.3 $ $Date: 2001/04/08 07:57:57 $
    */
   
   public interface Manager {
  @@ -154,6 +154,14 @@
   
   
       /**
  +     * Add this Session to the set of active Sessions for this Manager.
  +     *
  +     * @param session Session to be added
  +     */
  +    public void add(Session session);
  +
  +
  +    /**
        * Add a property change listener to this component.
        *
        * @param listener The listener to add
  @@ -205,6 +213,14 @@
        * @exception IOException if an input/output error occurs
        */
       public void load() throws ClassNotFoundException, IOException;
  +
  +
  +    /**
  +     * Remove this Session from the active Sessions for this Manager.
  +     *
  +     * @param session Session to be removed
  +     */
  +    public void remove(Session session);
   
   
       /**
  
  
  

Reply via email to