hoju 2005/07/22 23:44:46
Modified: src/java/org/apache/log4j/spi Tag: v1_2-branch Filter.java
Log:
migrate getNext/setNext methods from 1.3 to 1.2.11 to provide a migration
path from the public "next" variable
Revision Changes Path
No revision
No revision
1.4.2.3 +16 -0 logging-log4j/src/java/org/apache/log4j/spi/Filter.java
Index: Filter.java
===================================================================
RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/spi/Filter.java,v
retrieving revision 1.4.2.2
retrieving revision 1.4.2.3
diff -u -r1.4.2.2 -r1.4.2.3
--- Filter.java 24 May 2005 05:06:21 -0000 1.4.2.2
+++ Filter.java 23 Jul 2005 06:44:46 -0000 1.4.2.3
@@ -62,6 +62,8 @@
/**
Points to the next filter in the filter chain.
+
+ @deprecated As of 1.2.11, use [EMAIL PROTECTED] #getNext} and [EMAIL
PROTECTED] #setNext} instead
*/
public Filter next;
@@ -105,4 +107,18 @@
public
int decide(LoggingEvent event);
+ /**
+ * Set the next filter pointer.
+ */
+ public void setNext(Filter next) {
+ this.next = next;
+ }
+
+ /**
+ * Return the pointer to the next filter;
+ */
+ public Filter getNext() {
+ return next;
+ }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]