Update of /cvsroot/bprocessor/kernel/src/net/sourceforge/bprocessor/kernel/notification
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6445
Modified Files:
Notifier.java
Log Message:
Added debug statements
Index: Notifier.java
===================================================================
RCS file: /cvsroot/bprocessor/kernel/src/net/sourceforge/bprocessor/kernel/notification/Notifier.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** Notifier.java 27 Jun 2005 09:12:30 -0000 1.1.1.1
--- Notifier.java 1 Jul 2005 11:30:00 -0000 1.2
***************
*** 49,52 ****
--- 49,55 ----
*/
public synchronized void addListener(NotificationListener l) {
+ if (log.isDebugEnabled()) {
+ log.debug("Adding: " + l);
+ }
listeners.add(l);
}
***************
*** 57,60 ****
--- 60,66 ----
*/
public synchronized void removeListener(NotificationListener l) {
+ if (log.isDebugEnabled()) {
+ log.debug("Removing: " + l);
+ }
listeners.remove(l);
}
***************
*** 65,68 ****
--- 71,77 ----
*/
public synchronized void sendNotification(Notification n) {
+ if (log.isDebugEnabled()) {
+ log.debug("Sending: " + n);
+ }
Iterator it = listeners.iterator();
while (it.hasNext()) {
|