what is the problem
I have some object and they need to communitate each other and i want a software that do it
the soluzion of mediator
The first, not best solution, is programming the objects (collegues) so that each object can communicate with all other objects.
But in this way i have hight coupling between objects. We want avoid this.
The best solution is to use an object (mediator) through each object can communicate.
Leggi tutto... (http://blog.intelly-net.com/java/design-pattern/design-pattern-mediator-and-java-implementation.html)
↧