|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.puremvc.java.patterns.observer.Notifier
public class Notifier
A Base INotifier implementation.
MacroCommand, Command, Mediator and Proxy all
have a need to send Notifications.
The INotifier interface provides a common method called
sendNotification that relieves implementation code of the
necessity to actually construct Notifications.
The Notifier class, which all of the above mentioned classes
extend, provides an initialized reference to the Facade
Singleton, which is required for the convienience method for sending
Notifications, but also eases implementation as these classes
have frequent Facade interactions and usually require access
to the facade anyway.
Facade,
Mediator,
Proxy,
SimpleCommand,
MacroCommand| Field Summary | |
|---|---|
protected Facade |
facade
Local reference to the Facade Singleton |
| Constructor Summary | |
|---|---|
Notifier()
|
|
| Method Summary | |
|---|---|
void |
sendNotification(java.lang.String notificationName)
Send an INotifications. |
void |
sendNotification(java.lang.String notificationName,
java.lang.Object body)
Send an INotifications. |
void |
sendNotification(java.lang.String notificationName,
java.lang.Object body,
java.lang.String type)
Send an INotifications. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Facade facade
| Constructor Detail |
|---|
public Notifier()
| Method Detail |
|---|
public void sendNotification(java.lang.String notificationName,
java.lang.Object body,
java.lang.String type)
INotifications.
Keeps us from having to construct new notification instances in our implementation code.
notificationName - the name of the notiification to sendbody - the body of the notification (optional)type - the type of the notification (optional)
public void sendNotification(java.lang.String notificationName,
java.lang.Object body)
INotifications.
Keeps us from having to construct new notification instances in our implementation code.
notificationName - the name of the notiification to sendbody - the body of the notification (optional)public void sendNotification(java.lang.String notificationName)
INotifications.
Keeps us from having to construct new notification instances in our implementation code.
notificationName - the name of the notiification to send
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||