public final class NotificationDispatcherMetadata extends Object implements ServerExtension
Notification dispatchers (see NotificationDispatcher) can define their own metadata class in order
to tell more about them.
Instances of those classes must be passed to Pico container (generally in the
SonarPlugin#getExtensions() method implementation).
| Modifier and Type | Field and Description |
|---|---|
static String |
GLOBAL_NOTIFICATION |
static String |
PER_PROJECT_NOTIFICATION |
| Modifier and Type | Method and Description |
|---|---|
static NotificationDispatcherMetadata |
create(String dispatcherKey)
Creates a new metadata instance for the given dispatcher.
|
String |
getDispatcherKey()
Returns the unique key of the dispatcher.
|
String |
getProperty(String key)
Gives the property for the given key.
|
NotificationDispatcherMetadata |
setProperty(String key,
String value)
Sets a property on this metadata object.
|
public static final String GLOBAL_NOTIFICATION
public static final String PER_PROJECT_NOTIFICATION
public static NotificationDispatcherMetadata create(String dispatcherKey)
public NotificationDispatcherMetadata setProperty(String key, String value)
public String getProperty(String key)
public String getDispatcherKey()
Copyright © 2009-2013 SonarSource. All Rights Reserved.