incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: incubator-ftpserver/src/java/org/apache/ftpserver/ftplet Component.java FtpConfig.java Logger.java
Date Thu, 06 Oct 2005 06:04:56 GMT
rana_b      2005/10/05 23:04:56

  Modified:    src/java/org/apache/ftpserver/ftplet Component.java
                        FtpConfig.java
  Removed:     src/java/org/apache/ftpserver/ftplet Logger.java
  Log:
  commons-logging used
  
  Revision  Changes    Path
  1.2       +6 -5      incubator-ftpserver/src/java/org/apache/ftpserver/ftplet/Component.java
  
  Index: Component.java
  ===================================================================
  RCS file: /home/cvs/incubator-ftpserver/src/java/org/apache/ftpserver/ftplet/Component.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Component.java	7 Sep 2005 05:05:17 -0000	1.1
  +++ Component.java	6 Oct 2005 06:04:55 -0000	1.2
  @@ -16,11 +16,13 @@
    */
   package org.apache.ftpserver.ftplet;
   
  +import org.apache.commons.logging.LogFactory;
  +
   /**
    * This interface abstracts the basic lifecycle method. 
    * <ol>
    *     <li>Default constructor will be called.</li>
  - *     <li>Component.setLogger(Logger) will be set to set the appropriate logger.</li>
  + *     <li>Set the LogFactory.</li>
    *     <li>The component will be configured using Component.configure(Configuration)</li>
    *     <li>Other component specific methods will be called.</li>
    *     <li>Finnaly Component.dispose() method will be called.</li>
  @@ -32,9 +34,9 @@
   interface Component {
   
       /**
  -     * Set logger. 
  +     * Set the LogFactory.
        */
  -    void setLogger(Logger logger);
  +    void setLogFactory(LogFactory logFact);
       
       /**
        * Configure the component.
  @@ -45,5 +47,4 @@
        * Dispose component - release all the resources.
        */
       void dispose();
  -    
   }
  
  
  
  1.2       +8 -6      incubator-ftpserver/src/java/org/apache/ftpserver/ftplet/FtpConfig.java
  
  Index: FtpConfig.java
  ===================================================================
  RCS file: /home/cvs/incubator-ftpserver/src/java/org/apache/ftpserver/ftplet/FtpConfig.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FtpConfig.java	7 Sep 2005 05:05:17 -0000	1.1
  +++ FtpConfig.java	6 Oct 2005 06:04:55 -0000	1.2
  @@ -18,6 +18,8 @@
   
   import java.net.InetAddress;
   
  +import org.apache.commons.logging.LogFactory;
  +
   /**
    * A ftplet configuration object used by a ftplet container used to pass 
    * information to a ftplet during initialization. The configuration information 
  @@ -29,14 +31,14 @@
   interface FtpConfig {
   
       /**
  -     * Get the user manager.
  +     * Get the log factory.
        */
  -    UserManager getUserManager();
  -
  +    public LogFactory getLogFactory();
  +    
       /**
  -     * Get logger.
  +     * Get the user manager.
        */
  -    Logger getLogger();
  +    UserManager getUserManager();
        
       /**
        * Get file system manager
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message