Skip to content

Glossary: Software Design Patterns in Java

Observer

Also written: observer pattern

A pattern where the place something happens (the subject) keeps a list of listeners and calls each one, without knowing what they do. New reactions need no change to the emitting code.

Where the book teaches it

Related terms

ListenerSubjectPublish/subscribeEvent bus