All Tags // Observer Pattern

Applying Design Patterns in ColdFusion - The Observer Pattern posted on: 5/21/09
Description: I have to say, I'm pretty excited about how the observer pattern works. Coming from the mindset of event driven programming and asynchronous communication, it seems to have many similar traits. Head First Design Patterns describes the observer patterns as: The Observer Pattern defines a one-to-many dependancy between objects so that when one object changes state, all of its dependants are notified and updated automatically Or to put it another way, the Observer Pattern allows one or many objects, in this case we call them observers, to register themselves with a single object, the subject, in order to have the data they need pushed to them from the subject. How each of the observers reacts to the data can vary greatly.

Search