Interface NotificationProvider
-
- All Known Implementing Classes:
AbstractNotificationProvider
,ECPNotificationProvider
public interface NotificationProvider
A notification provider is a source forNotifications
. It maintains a set ofNotificationReceivers
which will be notified when there is a new Notification.- Author:
- Jonas, jfaltermeier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addReceiver(NotificationReceiver receiver)
Adds a newNotificationReceiver
.void
removeReceiver(NotificationReceiver receiver)
Removes aNotificationReceiver
.
-
-
-
Method Detail
-
addReceiver
void addReceiver(NotificationReceiver receiver)
Adds a newNotificationReceiver
. Does nothing of receiver is already registered,- Parameters:
receiver
- the receiver to add
-
removeReceiver
void removeReceiver(NotificationReceiver receiver)
Removes aNotificationReceiver
. Does nothing if the receiver was never registered.- Parameters:
receiver
- the receiver
-
-