New answers tagged observer-pattern
Assuming you did make the Observer class just another standard class and created a new instance, what would you intend to do with it then? An observer without any behavior is a rather useless object. Any logic specific to what you are observing would end up in a subclass anyways (i.e. MyEventObserver) and anything that would be generic enough to be used by ...
Logging is usually implemented with the Chain of responsibility pattern pattern. Of course you can (and I would) combine that with a Facade. I really wouldn't use Listener(s) or Observer(s) myself.
Top 50 recent answers are included