
0
Answered
Doesn't the mediator pattern violates open close principle
Every time a new component has to be added the notify in AuthenticationDialog needs to be modified, won't that violate the open close principle.
Servicio de atención al cliente por UserEcho
Hi!
It's indeed so, but depending on what your starting point, Mediator can be a lesser evel comparing to a spagetti mess. In some cases, you can aleviate this problem by implementing aspects of the Observer pattern, to make the notification more generic.