tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core BaseInterceptor.java Container.java
Date Wed, 21 Aug 2002 03:58:59 GMT
billbarker    2002/08/20 20:58:59

  Modified:    src/share/org/apache/tomcat/core BaseInterceptor.java
                        Container.java
  Log:
  API changes to allow for saving session across Context reloading.
  
  Revision  Changes    Path
  1.53      +8 -0      jakarta-tomcat/src/share/org/apache/tomcat/core/BaseInterceptor.java
  
  Index: BaseInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/BaseInterceptor.java,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- BaseInterceptor.java	5 Jun 2002 03:39:15 -0000	1.52
  +++ BaseInterceptor.java	21 Aug 2002 03:58:59 -0000	1.53
  @@ -472,7 +472,15 @@
   	throws TomcatException
       {
       }
  +    /** Reload notification - called whenever a full reload is done.
  +	This can be used to serialize sessions, log the event,
  +	clone any resource that was class-loader dependent.
   
  +     */
  +    public void copyContext(Request req, Context oldC, Context newC)
  +	throws  TomcatException
  +    {
  +    }
       // -------------------- Container ( or Location ) hooks ---------------
       
       /** Notify that certain properties are defined for a URL pattern.
  
  
  
  1.56      +3 -1      jakarta-tomcat/src/share/org/apache/tomcat/core/Container.java
  
  Index: Container.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Container.java,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- Container.java	5 Jun 2002 03:39:15 -0000	1.55
  +++ Container.java	21 Aug 2002 03:58:59 -0000	1.56
  @@ -417,7 +417,8 @@
       public static final int H_engineInit=16;
       public static final int H_preInitCheck=17;
       public static final int H_postInitCheck=18;
  -    public static final int H_COUNT=19;
  +    public static final int H_copyContext=19;
  +    public static final int H_COUNT=20;
   
       private Hooks hooks=new Hooks();
       private BaseInterceptor hooksCache[][]=null;
  @@ -443,6 +444,7 @@
   	hooks.registerHook( "engineInit", H_engineInit );
   	hooks.registerHook( "preInitCheck", H_preInitCheck );
   	hooks.registerHook( "postInitCheck", H_postInitCheck );
  +	hooks.registerHook( "copyContext", H_copyContext );
       }
   
       public Hooks getHooks() {
  
  
  

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


Mime
View raw message