org.sonar.api.notifications
Class NotificationChannel

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

public abstract class NotificationChannel
extends Object
implements ServerExtension

Provides logic to deliver notification. For example:

Since:
2.10

Constructor Summary
NotificationChannel()
           
 
Method Summary
abstract  void deliver(Notification notification, String username)
           
 String getKey()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationChannel

public NotificationChannel()
Method Detail

getKey

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

deliver

public abstract void deliver(Notification notification,
                             String username)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 SonarSource. All Rights Reserved.