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-connectors/jk/java/org/apache/jk/core JkHandler.java WorkerEnv.java
Date Wed, 05 Jun 2002 21:23:33 GMT
costin      2002/06/05 14:23:33

  Modified:    jk/java/org/apache/jk/core JkHandler.java WorkerEnv.java
  Log:
  A simple hack to allow jk components to be notified when other
  components are added.
  
  Revision  Changes    Path
  1.8       +8 -0      jakarta-tomcat-connectors/jk/java/org/apache/jk/core/JkHandler.java
  
  Index: JkHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/core/JkHandler.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JkHandler.java	22 May 2002 23:52:13 -0000	1.7
  +++ JkHandler.java	5 Jun 2002 21:23:32 -0000	1.8
  @@ -148,4 +148,12 @@
       public String getProperty( String name ) {
           return properties.getProperty(name) ;
       }
  +
  +    /** Experimental, will be replaced. This allows handlers to be
  +     *  notified when other handlers are added.
  +     */
  +    public void addHandlerCallback( JkHandler w ) {
  +
  +    }
  +
   }
  
  
  
  1.8       +6 -0      jakarta-tomcat-connectors/jk/java/org/apache/jk/core/WorkerEnv.java
  
  Index: WorkerEnv.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/core/WorkerEnv.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- WorkerEnv.java	18 Apr 2002 19:13:01 -0000	1.7
  +++ WorkerEnv.java	5 Jun 2002 21:23:32 -0000	1.8
  @@ -147,6 +147,12 @@
           handlersTable[handlerCount]=w;
           w.setId( handlerCount );
           handlerCount++;
  +
  +        // Notify all other handlers of the new one
  +        // XXX Could be a Coyote action ?
  +        for( int i=0; i< handlerCount ; i++ ) {
  +            handlersTable[i].addHandlerCallback( w );
  +        }
       }
   
       public final JkHandler getHandler( String name ) {
  
  
  

--
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