Observer (Cont’d)
Consequences
- abstract coupling of subject and observer
- object is responsible only for its own state Þ reusability
- unexpected updates, update overhead
Implementation
- push/pull model for notifications
- change interests
- registering operation to be called
- can result in cycles that have to be manually broken