Use Hashtable instead of HashMap, for JDK 1.1
compatibility, and to solve sync issues git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138851 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//logging/src/java/org/apache/commons/logging/LogSource.java,v 1.10 2002/01/17 22:55:43 rdonkin Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//logging/src/java/org/apache/commons/logging/LogSource.java,v 1.11 2002/02/03 01:28:00 sanders Exp $
|
||||||
* $Revision: 1.10 $
|
* $Revision: 1.11 $
|
||||||
* $Date: 2002/01/17 22:55:43 $
|
* $Date: 2002/02/03 01:28:00 $
|
||||||
*
|
*
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
@@ -62,10 +62,8 @@
|
|||||||
package org.apache.commons.logging;
|
package org.apache.commons.logging;
|
||||||
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.lang.reflect.Constructor;
|
import java.lang.reflect.Constructor;
|
||||||
import java.util.Iterator;
|
import java.util.Hashtable;
|
||||||
import java.lang.reflect.InvocationTargetException;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -94,13 +92,13 @@ import java.lang.reflect.InvocationTargetException;
|
|||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* @author Rod Waldhoff
|
* @author Rod Waldhoff
|
||||||
* @version $Id: LogSource.java,v 1.10 2002/01/17 22:55:43 rdonkin Exp $
|
* @version $Id: LogSource.java,v 1.11 2002/02/03 01:28:00 sanders Exp $
|
||||||
*/
|
*/
|
||||||
public class LogSource {
|
public class LogSource {
|
||||||
|
|
||||||
// ------------------------------------------------------- Class Attributes
|
// ------------------------------------------------------- Class Attributes
|
||||||
|
|
||||||
static protected HashMap logs = new HashMap();
|
static protected Hashtable logs = new Hashtable();
|
||||||
|
|
||||||
/** Is log4j available (in the current classpath) */
|
/** Is log4j available (in the current classpath) */
|
||||||
static protected boolean log4jIsAvailable = false;
|
static protected boolean log4jIsAvailable = false;
|
||||||
@@ -142,7 +140,8 @@ public class LogSource {
|
|||||||
String name = null;
|
String name = null;
|
||||||
try {
|
try {
|
||||||
name = System.getProperty("org.apache.commons.logging.log");
|
name = System.getProperty("org.apache.commons.logging.log");
|
||||||
} catch (Throwable t) { }
|
} catch (Throwable t) {
|
||||||
|
}
|
||||||
if (name != null) {
|
if (name != null) {
|
||||||
try {
|
try {
|
||||||
setLogImplementation(name);
|
setLogImplementation(name);
|
||||||
|
|||||||
Reference in New Issue
Block a user