
Public Member Functions | |
| void | NotifyObserver (INotification notification) |
| Notify the interested object. | |
| bool | CompareNotifyContext (object obj) |
| Compare the given object to the notificaiton context object. | |
Properties | |
| string | NotifyMethod [set] |
| object | NotifyContext [set] |
In PureMVC, IObserver implementors assume these responsibilities:
this) of the interested object PureMVC does not rely upon underlying event models
The Observer Pattern as implemented within PureMVC exists to support event driven communication between the application and the actors of the MVC triad
An Observer is an object that encapsulates information about an interested object with a notification method that should be called when an INotification is broadcast. The Observer then acts as a proxy for notifying the interested object
Observers can receive Notifications by having their notifyObserver method invoked, passing in an object implementing the INotification interface, such as a subclass of Notification
PureMVC.Interfaces.IView PureMVC.Interfaces.INotification
| bool PureMVC.Interfaces.IObserver.CompareNotifyContext | ( | object | obj | ) |
Compare the given object to the notificaiton context object.
| obj | The object to compare |
Implemented in PureMVC.Patterns.Observer.
| void PureMVC.Interfaces.IObserver.NotifyObserver | ( | INotification | notification | ) |
Notify the interested object.
| notification | The INotification to pass to the interested object's notification method |
Implemented in PureMVC.Patterns.Observer.
object PureMVC.Interfaces.IObserver.NotifyContext [set] |
The notification context (this) of the interested object
Implemented in PureMVC.Patterns.Observer.
string PureMVC.Interfaces.IObserver.NotifyMethod [set] |
The notification (callback) method of the interested object The notification method should take one parameter of type INotification
Implemented in PureMVC.Patterns.Observer.
1.5.8