INotification Interface
The interface definition for a PureMVC MultiCore Notification.
The Observer Pattern as implemented within PureMVC exists to support publish/subscribe communication between actors.
INotifications are not meant to be a replacement for Event
s,
but rather an internal communication mechanism that ensures
PureMVC is portable regardless of what type of Event mechanism
is supported (or not) on a given platform.
Generally, IMediator implementors place Event
listeners on
their view components, and IProxy implementors place Event
listeners on service components. Those Event
s are then handled in
the usual way, and may lead to the broadcast of INotifications
that trigger ICommands or notify IMediators.
Implemented by
Methods
Code get body() #
Dynamic get body();
Code getBody() #
Get the body of the INotification.
- Returns
Dynamic
- the body of the INotification.
Dynamic getBody();
Code void setBody(Object body) #
Set the body of the INotification.
- Param body - the body of the INotification.
void setBody( Object body );
Code void setType(String type) #
Set the type of the INotification.
- Param type - the type of the INotification.
void setType( String type );