tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/service JNIEndpointConnector.java
Date Thu, 22 Jun 2000 23:41:03 GMT
alex        00/06/22 16:41:03

  Modified:    src/share/org/apache/tomcat/service
                        JNIEndpointConnector.java
  Log:
  Use LogHelper for consistent log behavior
  
  setEndpoinet -> setEndpoint
  
  added public void setLogger( Logger logger ) (now required by
  ServerConnector)
  
  Revision  Changes    Path
  1.3       +15 -4     jakarta-tomcat/src/share/org/apache/tomcat/service/JNIEndpointConnector.java
  
  Index: JNIEndpointConnector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/service/JNIEndpointConnector.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JNIEndpointConnector.java	2000/05/31 20:58:37	1.2
  +++ JNIEndpointConnector.java	2000/06/22 23:41:02	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/service/JNIEndpointConnector.java,v
1.2 2000/05/31 20:58:37 costin Exp $
  - * $Revision: 1.2 $
  - * $Date: 2000/05/31 20:58:37 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/service/JNIEndpointConnector.java,v
1.3 2000/06/22 23:41:02 alex Exp $
  + * $Revision: 1.3 $
  + * $Date: 2000/06/22 23:41:02 $
    *
    * ====================================================================
    *
  @@ -67,6 +67,7 @@
   import org.apache.tomcat.core.*;
   import org.apache.tomcat.util.*;
   import org.apache.tomcat.service.connector.*;
  +import org.apache.tomcat.logging.*;
   
   /**
    * Connector for a JNI connections using the API in tomcat.service.
  @@ -90,7 +91,7 @@
   
       boolean running = true;
   
  -    public static void setEndpoinet(JNIEndpoint ep)
  +    public static void setEndpoint(JNIEndpoint ep)
       {
           JNIEndpointConnector.ep = ep;
       }
  @@ -131,4 +132,14 @@
       public Object getAttribute(String prop) {
           return null;
       }
  +
  +    private LogHelper loghelper = new LogHelper("tc_log", "JNIEndpointConnector");
  +
  +    /**
  +     * Set a logger explicitly.
  +     **/
  +    public void setLogger( Logger logger ) {
  +	loghelper.setLogger(logger);
  +    }
  +
   }
  
  
  

Mime
View raw message