![]() |
|
|
| |
|
||||
The observer pattern is a design pattern used in computer programming to observe the state of an object in a program. The essence of this pattern is that several objects (called listeners) are registered to hear for an event which may be raised by some object. (The object which may raise an event holds a list of the listeners.) When the event is raised for each listener is called a some callback (which may be either a virtual method of the listeners class or a function pointer (more generally a functor) passed as an argument to the listener registration method). Typical usagesThe typical usages of the observer pattern:
ImplementationsThe observer pattern is implemented in numerous programming libraries and systems, including almost all GUI toolkits. Some of the most notable implementations of this pattern:
External link |
|
|
|
|
|
|
|
Copyright 2008 WordIQ.com - Privacy Policy
::
Terms of Use
:: Contact Us
:: About Us This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Observer pattern". |