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
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,13 @@
169
169
##Mediator
170
170
**Intent:** Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.
* a set of objects communicate in well-defined but complex ways. The resulting interdependencies are unstructured and difficult to understand
176
+
* reusing an object is difficult because it refers to and communicates with many other objects
177
+
* a behavior that's distributed between several classes should be customizable without a lot of subclassing
178
+
172
179
##Memento
173
180
**Intent:** Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later.
0 commit comments