Software Design

Observer Pattern: Loose Event Notification

UML Class Diagrams · made in Skemio

UML class diagram illustrating an EventManager publisher that notifies an EventListener interface implemented by UIChart and AuditLog.
UML class diagram illustrating an EventManager publisher that notifies an EventListener interface implemented by UIChart and AuditLog.

What it shows

  • Decouples data subjects from presentation and analytics consumers.
  • Allows adding new listeners dynamically with zero publisher changes.
  • Prevents circular dependencies between state stores and UI elements.

The takeaway

Publishers broadcast state changes without knowing who is listening or how they react.

More uml class diagrams