tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/depend DependManager.java Dependency.java
Date Wed, 07 Mar 2001 23:39:21 GMT
costin      01/03/07 15:39:21

  Modified:    src/share/org/apache/tomcat/util/depend DependManager.java
                        Dependency.java
  Log:
  Add "reset" - this remove the need to replace the DependManager on
  reloading, and most of the extra setup.
  
  Revision  Changes    Path
  1.5       +11 -0     jakarta-tomcat/src/share/org/apache/tomcat/util/depend/DependManager.java
  
  Index: DependManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/depend/DependManager.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DependManager.java	2000/12/13 18:48:43	1.4
  +++ DependManager.java	2001/03/07 23:39:20	1.5
  @@ -88,6 +88,17 @@
       public DependManager() {
       }
   
  +    /** Reset the depend manager - all dependencies are reset too.
  +	This will be called after a reload
  +    */
  +    public void reset() {
  +	expired=false;
  +	for( int i=0; i<depsCount; i++ ) {
  +	    Dependency d=deps[i];
  +	    d.reset();
  +	}
  +    }
  +    
       public void setDelay( int d ) {
   	delay=d;
       }
  
  
  
  1.3       +5 -0      jakarta-tomcat/src/share/org/apache/tomcat/util/depend/Dependency.java
  
  Index: Dependency.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/depend/Dependency.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Dependency.java	2000/12/13 18:48:43	1.2
  +++ Dependency.java	2001/03/07 23:39:20	1.3
  @@ -94,6 +94,11 @@
   	return lastModified;
       }
   
  +    public void reset() {
  +	expired=false;
  +	lastModified=origin.lastModified();
  +    }
  +    
       /**
        * If set, the dependency will be "local", i.e. will be marked as
        * expired but the DependManager will not triger an expire at a higher
  
  
  

Mime
View raw message