File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 7
7
/**
8
8
* Mediator is the concrete Mediator for this design pattern.
9
9
*
10
- * This pattern provides an easy to decouple many components working together.
11
- * It is a good alternative over Observer IF you have a "central intelligence",
12
- * like a controller (but not in the sense of the MVC).
13
- *
14
- * All components (called Colleague) are only coupled to the MediatorInterface and
15
- * it is a good thing because in OOP, one good friend is better than many. This
16
- * is the key-feature of this pattern.
17
- *
18
- * In this example, I have made a "Hello World" with the Mediator Pattern, have fun (^_^)
10
+ * In this example, I have made a "Hello World" with the Mediator Pattern.
19
11
*/
20
12
class Mediator implements MediatorInterface
21
13
{
Original file line number Diff line number Diff line change
1
+ # Mediator
2
+
3
+ ## Purpose
4
+
5
+ This pattern provides an easy to decouple many components working together.
6
+ It is a good alternative over Observer IF you have a "central intelligence",
7
+ like a controller (but not in the sense of the MVC).
8
+
9
+ All components (called Colleague) are only coupled to the MediatorInterface and
10
+ it is a good thing because in OOP, one good friend is better than many. This
11
+ is the key-feature of this pattern.
You can’t perform that action at this time.
0 commit comments