Author: skitching
Date: Mon Jun 6 19:48:27 2005
New Revision: 188671
URL: http://svn.apache.org/viewcvs?rev=188671&view=rev
Log:
Created branch for allow-flawed experimental code.
Added:
jakarta/commons/proper/logging/branches/allow-flawed/
- copied from r176414, jakarta/commons/proper/logging/trunk/
jakarta/commons/proper/logging/branches/allow-flawed/build.xml
- copied unchanged from r179559,
jakarta/commons/proper/logging/trunk/build.xml
jakarta/commons/proper/logging/branches/allow-flawed/maven.xml
- copied unchanged from r176497,
jakarta/commons/proper/logging/trunk/maven.xml
jakarta/commons/proper/logging/branches/allow-flawed/project.properties
- copied unchanged from r176581,
jakarta/commons/proper/logging/trunk/project.properties
jakarta/commons/proper/logging/branches/allow-flawed/src/java/org/
- copied from r179499, jakarta/commons/proper/logging/trunk/src/java/org/
jakarta/commons/proper/logging/branches/allow-flawed/src/java/org/apache/commons/logging/impl/Jdk13LumberjackLogger.java
- copied unchanged from r179529,
jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Jdk13LumberjackLogger.java
jakarta/commons/proper/logging/branches/allow-flawed/src/java/org/apache/commons/logging/impl/Jdk14Logger.java
- copied unchanged from r179529,
jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Jdk14Logger.java
jakarta/commons/proper/logging/branches/allow-flawed/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
- copied, changed from r180287,
jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
jakarta/commons/proper/logging/branches/allow-flawed/src/test/org/apache/commons/logging/LoadTest.java
- copied, changed from r179566,
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/LoadTest.java
jakarta/commons/proper/logging/branches/allow-flawed/src/test/org/apache/commons/logging/TestAll.java
- copied unchanged from r179566,
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/TestAll.java
jakarta/commons/proper/logging/branches/allow-flawed/src/test/org/apache/commons/logging/jdk14/CustomConfigTestCase.java
- copied unchanged from r177867,
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/jdk14/CustomConfigTestCase.java
Modified:
jakarta/commons/proper/logging/branches/allow-flawed/src/test/org/apache/commons/logging/UserClass.java
Copied:
jakarta/commons/proper/logging/branches/allow-flawed/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
(from r180287,
jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java)
URL:
http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/branches/allow-flawed/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java?p2=jakarta/commons/proper/logging/branches/allow-flawed/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java&p1=jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java&r1=180287&r2=188671&rev=188671&view=diff
==
---
jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
(original)
+++
jakarta/commons/proper/logging/branches/allow-flawed/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
Mon Jun 6 19:48:27 2005
@@ -20,8 +20,6 @@
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
@@ -99,6 +97,49 @@
protected static final String LOG_PROPERTY_OLD =
"org.apache.commons.logging.log";
+/**
+ * The name of the system property which can be set true/false to
+ * determine system behaviour when a bad context-classloader is
encountered.
+ * When set to false
+ *
+ * Default behaviour: true (tolerates bad context classloaders)
+ *
+ * See also method setAttribute.
+ */
+public static final String ALLOW_FLAWED_CONTEXT_PROPERTY =
+"org.apache.commons.logging.Log.allowFlawedContext";
+
+/**
+ * The name of the system property which can be set true/false to
+ * determine system behaviour when a bad logging adapter class is
+ * encountered during logging discovery. When set to false, an
+ * exception will be thrown and the app will fail to start. When set
+ * to true, discovery will continue (though the user might end up
+ * with a different logging implementation than they expected).
+ *
+ * Default behaviour: true (tolerates bad loggin