1
2
3
4
5
6
7
8
9
10
11 package org.mule.context.notification;
12
13 import org.mule.api.context.notification.ServerNotification;
14
15 import java.util.LinkedList;
16 import java.util.List;
17
18 public abstract class AbstractNotificationLogger
19 {
20
21 private LinkedList notifications = new LinkedList();
22
23 public synchronized void onNotification(ServerNotification notification)
24 {
25 notifications.addLast(notification);
26 }
27
28 public List getNotifications()
29 {
30 return notifications;
31 }
32
33 }