commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject svn commit: r382320 - /jakarta/commons/proper/logging/contrib/simon/jcl2/src/core-static/java/org/apache/commons/logging/LogFactoryStatic.java
Date Thu, 02 Mar 2006 08:38:43 GMT
Author: skitching
Date: Thu Mar  2 00:38:40 2006
New Revision: 382320

URL: http://svn.apache.org/viewcvs?rev=382320&view=rev
Log:
Remove obsolete code.

Modified:
    jakarta/commons/proper/logging/contrib/simon/jcl2/src/core-static/java/org/apache/commons/logging/LogFactoryStatic.java

Modified: jakarta/commons/proper/logging/contrib/simon/jcl2/src/core-static/java/org/apache/commons/logging/LogFactoryStatic.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/contrib/simon/jcl2/src/core-static/java/org/apache/commons/logging/LogFactoryStatic.java?rev=382320&r1=382319&r2=382320&view=diff
==============================================================================
--- jakarta/commons/proper/logging/contrib/simon/jcl2/src/core-static/java/org/apache/commons/logging/LogFactoryStatic.java
(original)
+++ jakarta/commons/proper/logging/contrib/simon/jcl2/src/core-static/java/org/apache/commons/logging/LogFactoryStatic.java
Thu Mar  2 00:38:40 2006
@@ -61,43 +61,6 @@
 
     public LogFactoryStatic() {
         handler = (LogHandler) Utils.createServiceInstance(LogHandler.class);
-        /*
-        String handlerClassName;
-        try {
-            // Search classpath for the first "commons-logging-handler.properties" file.
-            // Get the "handlerClass" key from it and instantiate the named class.
-            InputStream inputStream = LogFactoryStatic.class.getResourceAsStream(
-                    "/commons-logging-handler.properties");
-            if (inputStream == null) {
-                throw new LogConfigurationException("No logging adapter found.");
-            }
-
-            Properties p = new Properties();
-            p.load(inputStream);
-            inputStream.close();
-            
-            handlerClassName = p.getProperty("handlerClass");
-            if (handlerClassName == null) {
-                throw new LogConfigurationException("Invalid logging adapter configuration.");
-            }
-        } catch(IOException ex) {
-            throw new LogConfigurationException("Internal error while loading logging adapter.");
-        }
-        
-        try {
-            Class clazz = Class.forName(handlerClassName);
-            handler = (LogHandler) clazz.newInstance();
-        } catch(ClassNotFoundException ex) {
-            throw new LogConfigurationException(
-                    "Unable to find handler class '" + handlerClassName + "'");
-        } catch(InstantiationException ex) {
-            throw new LogConfigurationException(
-                    "Unable to instantiate handler class '" + handlerClassName + "'");
-        } catch(IllegalAccessException ex) {
-            throw new LogConfigurationException(
-                    "Unable to instantiate handler class '" + handlerClassName + "'");
-        }
-        */
     }
 
     /**



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


Mime
View raw message