org.sonar.api.notifications
Class NotificationDispatcher

java.lang.Object
  extended by org.sonar.api.notifications.NotificationDispatcher
All Implemented Interfaces:
Extension, ServerComponent, ServerExtension
Direct Known Subclasses:
ChangesInReviewAssignedToMeOrCreatedByMe

public abstract class NotificationDispatcher
extends Object
implements ServerExtension

Provides logic to determine which users are interested in receiving notification. Has no knowledge about the way of delivery. For example:

Since:
2.10

Nested Class Summary
static interface NotificationDispatcher.Context
           
 
Constructor Summary
NotificationDispatcher()
           
 
Method Summary
abstract  void dispatch(Notification notification, NotificationDispatcher.Context context)
           
 String getKey()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationDispatcher

public NotificationDispatcher()
Method Detail

getKey

public String getKey()
Returns:
unique key of this dispatcher

dispatch

public abstract void dispatch(Notification notification,
                              NotificationDispatcher.Context context)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 SonarSource. All Rights Reserved.