The essence of the Mediator Pattern is to “define an object that encapsulates how a set of objects interact”. It promotes loose coupling by keeping objects from referring to each other explicitly, and it allows their interaction to be varied independently. Client classes can use the mediator to send messages to other clients, and can receive messages from other clients via an event on the mediator class.

Bharat Dwarkani shared on Oct 19, 2019
favorite_border0 visibility55
favorite_border0 visibility55 share bookmarks