james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r279040 - /james/server/trunk/src/java/org/apache/james/transport/Loader.java
Date Tue, 06 Sep 2005 17:05:17 GMT
Author: bago
Date: Tue Sep  6 10:05:13 2005
New Revision: 279040

URL: http://svn.apache.org/viewcvs?rev=279040&view=rev
Log:
Not sure how did this work before, but it extends AbstractLogEnabled and should use getLogger.
Found out this problem by deploying in LOOM (now it should be compatible with both containers).

Modified:
    james/server/trunk/src/java/org/apache/james/transport/Loader.java

Modified: james/server/trunk/src/java/org/apache/james/transport/Loader.java
URL: http://svn.apache.org/viewcvs/james/server/trunk/src/java/org/apache/james/transport/Loader.java?rev=279040&r1=279039&r2=279040&view=diff
==============================================================================
--- james/server/trunk/src/java/org/apache/james/transport/Loader.java (original)
+++ james/server/trunk/src/java/org/apache/james/transport/Loader.java Tue Sep  6 10:05:13
2005
@@ -30,7 +30,6 @@
 import org.apache.avalon.framework.context.ContextException;
 import org.apache.avalon.framework.context.Contextualizable;
 import org.apache.avalon.framework.logger.AbstractLogEnabled;
-import org.apache.avalon.framework.logger.Logger;
 import org.apache.avalon.framework.service.DefaultServiceManager;
 import org.apache.avalon.framework.service.ServiceException;
 import org.apache.avalon.framework.service.ServiceManager;
@@ -44,7 +43,6 @@
 public abstract class Loader extends AbstractLogEnabled implements Contextualizable, Serviceable,
Configurable, Initializable {
     protected ClassLoader mailetClassLoader = null;
     protected String baseDirectory = null;
-    protected Logger logger;
     protected final String MAILET_PACKAGE = "mailetpackage";
     protected final String MATCHER_PACKAGE = "matcherpackage";
     /**
@@ -73,19 +71,11 @@
         } 
         catch (Throwable e) 
         {
-            logger.error( "can't get base directory for mailet loader" );
+            getLogger().error( "can't get base directory for mailet loader" );
             throw new ContextException("can't contextualise mailet loader " + e.getMessage(),
e);
         }
     }
 
-    /**
-     * Method setLogger.
-     * @param logger
-     */
-    public void setLogger(Logger logger) {
-        this.logger = logger;
-    }
-
     protected void getPackages(Configuration conf, String packageType)
         throws ConfigurationException {
         packages = new Vector();
@@ -111,7 +101,7 @@
         try {
             jarlist.add(new URL("file:///" + baseDirectory + "/SAR-INF/classes/"));
         } catch (MalformedURLException e) {
-            logger.error(
+            getLogger().error(
                 "can't add "
                     + "file:///"
                     + baseDirectory
@@ -122,10 +112,10 @@
                 try {
                     if (flist[i].indexOf("jar") == flist[i].length() - 3) {
                         jarlist.add(new URL("file:///" + baseDirectory +"/SAR-INF/lib/"+
flist[i]));
-                        logger.debug("added file:///" + baseDirectory +"/SAR-INF/lib/" +
flist[i] + " to mailet Classloader");
+                        getLogger().debug("added file:///" + baseDirectory +"/SAR-INF/lib/"
+ flist[i] + " to mailet Classloader");
                     }
                 } catch (MalformedURLException e) {
-                    logger.error("can't add file:///" + baseDirectory +"/SAR-INF/lib/"+ flist[i]
+ " to mailet classloader");
+                    getLogger().error("can't add file:///" + baseDirectory +"/SAR-INF/lib/"+
flist[i] + " to mailet classloader");
                 }
             }
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message