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/hooks Hooks.java
Date Mon, 16 Jul 2001 00:20:26 GMT
costin      01/07/15 17:20:26

  Modified:    src/share/org/apache/tomcat/util/hooks Hooks.java
  Log:
  Added the missing methods ( resetCache and addHook )
  
  Revision  Changes    Path
  1.6       +10 -0     jakarta-tomcat/src/share/org/apache/tomcat/util/hooks/Hooks.java
  
  Index: Hooks.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/hooks/Hooks.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Hooks.java	2001/06/28 07:26:08	1.5
  +++ Hooks.java	2001/07/16 00:20:25	1.6
  @@ -113,6 +113,11 @@
       public Vector getHooksVector( int type ) {
   	return hooksV[type];
       }
  +
  +    public void resetCache() {
  +	for( int i=0; i<hookCount; i++ )
  +	    hooks[i]=null;
  +    }
       
       public int registerHook( String name ) {
   	for( int i=0; i<hookNames.length; i++ ) {
  @@ -159,6 +164,11 @@
   	allModulesV.addElement( bi );
       }
   
  +    public void addModule( String type, Object bi ) {
  +	int typeId=getHookId( type );
  +	hooksV[typeId].addElement( bi );
  +	hooks[typeId]=null;
  +    }
   
       public void removeModule( Object bi ) {
   	for( int i=0; i<hookNames.length; i++ ) {
  
  
  

Mime
View raw message