ruex/foundation/patterns/observer/mod.rs
1//! Observers & Notifications
2//!
3//! PureMVC applications may run in environments without access to
4//! Flash’s Event and EventDispatcher classes, so the framework
5//! implements an Observer notification scheme for communication
6//! between the Core MVC actors and other parts of the system in a
7//! loosely-coupled way.
8//!
9//! You need not be concerned about the details of the PureMVC
10//! Observer/Notification implementation; it is internal to the
11//! framework. You will use a simple method to send Notifications from
12//! Proxies, Mediators, Commands and the Facade itself that doesn’t
13//! even require you to create a Notification instance.
14//!
15//! ## Notifications Can Be Used to Trigger Command Execution
16//!
17//! Commands are mapped to Notification names in your concrete
18//! Facade, and are automatically executed by the Controller when
19//! their mapped Notifications are sent. Commands typically
20//! orchestrate complex interaction between the interests of the View
21//! and Model while knowing as little about each as possible.
22
23mod notification;
24pub use self::notification::*;
25
26mod notifier;
27pub use self::notifier::*;
28
29mod observer;
30pub use self::observer::*;