Talk:Mediator pattern
From Wikipedia, the free encyclopedia
Please correct the example. The current example misses the point of both the mediator pattern and loose coupling. The point is to send logical events (like contentUpdated) to the mediatior, which passes them on to all the other listeners. It's not necessary to have a simple message queue as in the example - there can and often there should be logic in handling the events as well. The point is that this logic is in one place only.