Use a mediator when the complexity of linking objects begins to impede the reuse of the object . This type of complexity often appears in viewing examples, although it can really be anywhere.
Improper use of the mediator can lead to damage to the interfaces of the classes of fellow intermediaries.
It seems a little ridiculous to talk about the misuse of the template. If your implementation matches the pattern, you used the pattern. Otherwise, you did not. In other words, if your intermediary is doing something else, then he is probably not an intermediary. Templates are determined by what they do, what they really are. The names of things are just labels.
The real question is: do you ask if your implementation matches the promises pattern for your design. The mediator scheme is aimed at encapsulating complex inter-object communication when it becomes uncontrollable. If he did not achieve this or did not do it very well, you could say that the intermediary is being used incorrectly. At some point, he becomes a value judgment.
keparo
source share