Notifier
Syntax
public class Notifier: INotifier
Remarks
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 FacadeMultiton, 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.
NOTE: In the MultiCore version of the framework, there is one caveat to notifiers, they cannot send notifications or reach the facade until they have a valid multitonKey. The multitonKey is set:
- on a Command when it is executed by the Controller
- on a Mediator is registered with the View
- on a Proxy is registered with the Model.