|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.notifications.NotificationDispatcher
public abstract class NotificationDispatcher
Plugins should extend this class to provide logic to determine which users are interested in receiving notifications. It has no knowledge about the way of delivery.
For example:
Nested Class Summary | |
---|---|
static interface |
NotificationDispatcher.Context
Additional information related to the notification, which will be used to know who should receive the notification. |
Constructor Summary | |
---|---|
NotificationDispatcher()
|
Method Summary | |
---|---|
abstract void |
dispatch(Notification notification,
NotificationDispatcher.Context context)
Implements the logic that defines which users will receive the notification. |
String |
getKey()
Returns the unique key of this dispatcher. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NotificationDispatcher()
Method Detail |
---|
public String getKey()
public abstract void dispatch(Notification notification, NotificationDispatcher.Context context)
Implements the logic that defines which users will receive the notification.
The purpose of this method is to populate the context object with users, based on the type of notification and the content of the notification.
notification
- the notification that will be sentthe
- context linked to this notificationpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |