view.rb

Path: src/org/puremvc/ruby/core/view.rb
Last Update: Mon Dec 29 19:11:56 -0600 2008

In PureMVC, the View class assumes these responsibilities:

  • Maintain a cache of IMediator instances.
  • Provide methods for registering, retrieving, and removing Mediators.
  • Notifiying Mediators when they are registered or removed.
  • Managing the observer lists for each Notification in the application.
  • Providing a method for attaching Observers to an Notification‘s observer list.
  • Providing a method for broadcasting an Notification.
  • Notifying the Observers of a given Notification when it broadcast.

[Validate]