| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.scape_project.watch.notification.NotificationService
public final class NotificationService
Singleton that allows sending of notifications.
| Method Summary | |
|---|---|
 boolean | 
addAdaptor(NotificationAdaptorInterface adaptor)
Add a new notification adaptor and update index.  | 
 Set<NotificationAdaptorInterface> | 
getAdaptors()
 | 
static NotificationService | 
getInstance()
Get the singleton instance.  | 
 Map<String,DataType> | 
getTypeParameters(String type)
Get all possible parameters for a notification type.  | 
 Set<String> | 
getTypes()
 | 
 boolean | 
removeAdaptor(NotificationAdaptorInterface adaptor)
Remove an existing adaptor, updating index.  | 
 boolean | 
send(Notification notification)
Send a notification by all adaptors that support the notification type.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static NotificationService getInstance()
public boolean addAdaptor(NotificationAdaptorInterface adaptor)
adaptor - The notification adaptor to add.
true if did not already contain the specified adaptorpublic boolean removeAdaptor(NotificationAdaptorInterface adaptor)
adaptor - The adaptor to remove
true if contained the specified adaptorpublic Set<NotificationAdaptorInterface> getAdaptors()
public Set<String> getTypes()
public Map<String,DataType> getTypeParameters(String type)
type - The notification type.
public boolean send(Notification notification)
notification - The notification to send
true if notification sent by one or more adaptors
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||