yoavs 2004/12/13 08:29:01
Modified: docs HISTORY.txt
src/java/org/apache/log4j PropertyConfigurator.java
Log:
Bugzilla 20500.
Revision Changes Path
1.10 +3 -0 logging-log4j/docs/HISTORY.txt
Index: HISTORY.txt
===================================================================
RCS file: /home/cvs/logging-log4j/docs/HISTORY.txt,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- HISTORY.txt 13 Dec 2004 16:22:14 -0000 1.9
+++ HISTORY.txt 13 Dec 2004 16:29:01 -0000 1.10
@@ -25,6 +25,9 @@
- Fixed Bugzilla 13900: SMTPAppender doesn't use errorHandler when sending
error occurs.
+ - Implemented Bugzilla 20500: separate registry clearing from doConfigure
in PropertyConfigurator
+ to allow to easier extension.
+
November 25, 2004
- Release of version 1.3alpha-3
1.75 +9 -1
logging-log4j/src/java/org/apache/log4j/PropertyConfigurator.java
Index: PropertyConfigurator.java
===================================================================
RCS file:
/home/cvs/logging-log4j/src/java/org/apache/log4j/PropertyConfigurator.java,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- PropertyConfigurator.java 12 Dec 2004 21:30:30 -0000 1.74
+++ PropertyConfigurator.java 13 Dec 2004 16:29:01 -0000 1.75
@@ -392,11 +392,19 @@
// We don't want to hold references to appenders preventing their
// garbage collection.
- registry.clear();
+ clearRegistry();
} finally {
detachListAppender(repository);
}
}
+
+ /**
+ * Clears the registry so that we don't hold references to Appender
+ * objects, which would prevent their garbage collection.
+ */
+ protected void clearRegistry() {
+ registry.clear();
+ }
/**
Read configuration options from url <code>configURL</code>.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]