October 19, 2003

Behavioral Pattern – Observer

The observer pattern (also known as publish/subscribe) is a design pattern used to observe the state of an object in a program

  • Objects register to observe an event which may be raised by another object
  • This pattern is mainly used to implement a distributed event handling system