Observer
Implementation
Several issues related to the implementation of the dependency
mechanism are discussed in this section.
-
Mapping subjects to their observers.
-
Observing more than one subject.
-
Who triggers the update?
-
Dangling references to deleted subjects.
-
Making sure Subject state is self-consistent before
notification.
-
Avoiding observer-specific update protocols: the push
and pull models.
-
Specifying modifications of interest explicitly.
-
Encapsulating complex update semantics.
-
Combining the Subject and Observer classes.