Notifier class

A Base INotifier implementation.

MacroCommand, SimpleCommand, 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 INotifications.

The Notifier class, which all of the above mentioned classes extend, provides an initialized reference to an IFacade Multiton, which is required by the convienience method for sending INotifications, 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:

See Proxy, Facade, Mediator, MacroCommand, SimpleCommand

Implemented types
Implementers

Constructors

Notifier()

Properties

facade IFacade
Return the Multiton Facade instance [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getMultitonKey() String
initializeNotifier(String key) → void
Initialize this INotifier instance. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
sendNotification(String noteName, [dynamic body, String type]) → void
Send an INotification. [...]
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited