Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Concept

Observer Pattern

Technique

A Gang of Four behavioral design pattern that defines a one-to-many dependency between objects so that when one object, the subject, changes state, every object registered as its observer is notified and updated automatically.

Facts
Origin Year
1994 1
Core Principle
Defines a one-to-many dependency between a subject and its observers so that when the subject changes state, all its registered observers are notified automatically. 2
Connections

Associated With

Erich Gamma, Pioneers

Erich Gamma co-authored the 1994 Design Patterns book that named and catalogued the Observer pattern among the original 23.

In Field

Sources
1. Wikipedia: Design Patterns (book)
Wikimedia FoundationLead section, first sentence
Quote, Lead section, first sentence
Design Patterns: Elements of Reusable Object-Oriented Software (1994) is a software engineering book describing software design patterns.
View the Source
2. Wikipedia: Observer Pattern
Wikimedia FoundationLead section, first sentence
Quote, Lead section, first sentence
the observer pattern is a software design pattern in which an object, called the subject (also known as event source or event stream), maintains a list of its dependents, called observers (also known as event sinks), and automatically notifies them of any state changes
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.