PureMVC.Interfaces.IObserver Interface Reference

The interface definition for a PureMVC Observer. More...

Inheritance diagram for PureMVC.Interfaces.IObserver:

PureMVC.Patterns.Observer

List of all members.

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]


Detailed Description

The interface definition for a PureMVC Observer.

In PureMVC, IObserver implementors assume these responsibilities:

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


Member Function Documentation

bool PureMVC.Interfaces.IObserver.CompareNotifyContext ( object  obj  ) 

Compare the given object to the notificaiton context object.

Parameters:
obj The object to compare
Returns:
Indicates if the notification context and the object are the same.

Implemented in PureMVC.Patterns.Observer.

void PureMVC.Interfaces.IObserver.NotifyObserver ( INotification  notification  ) 

Notify the interested object.

Parameters:
notification The INotification to pass to the interested object's notification method

Implemented in PureMVC.Patterns.Observer.


Property Documentation

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.


The documentation for this interface was generated from the following file:

Generated on Thu Jan 1 16:26:46 2009 for PureMVC by  doxygen 1.5.8