You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In software engineering, the mediator pattern defines an object that encapsulates how a set of objects interact. This pattern is considered to be a behavioral pattern due to the way it can alter the program's running behavior.
4
+
5
+
With the mediator pattern, communication between objects is encapsulated within a mediator object. Objects no longer communicate directly with each other, but instead communicate through the mediator. This reduces the dependencies between communicating objects, thereby reducing coupling.
6
+
7
+
The Mediator interface declares a method used by components to notify the
8
+
mediator about various events. The Mediator may react to these events and
9
+
pass the execution to other components.
10
+
11
+
The Base Component provides the basic functionality of storing a mediator's
12
+
instance inside component objects.
13
+
14
+
Concrete Components implement various functionality. They don't depend on other
15
+
components. They also don't depend on any concrete mediator classes.
0 commit comments