Skip to content

Commit f915ef2

Browse files
authored
Merge pull request #13
doc: Manager design pattern 👩🏼‍💼
2 parents 12cc5e7 + f528b8c commit f915ef2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ I have added examples of pattern usage in the Python standard library and pypi -
2525
- [x] [State](chapter10_state)
2626
- [ ] Proxy
2727
- [ ] [Model View Controller (MVC)](chapter12_compound)
28+
- [ ] [Manager](chapter14_leftover) _(Bonus Pattern)_
2829

2930

3031
## Sample Code : Java

chapter14_leftover/readme.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Chapter 14: Leftover Patterns
2+
3+
> **Manager Pattern**: _(Bonus pattern)_ Manages multiple entities of the same or similar type.
4+
5+
Unlike the factory patterns which handle object creation or the
6+
mediator pattern which handles interaction between related objects, the
7+
manager pattern has the role of managing multiple identical or related objects.
8+
9+
For example in the Python standard library the [`Manager` object](https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Manager)
10+
in the `multiprocessing` library manages shared objects between child
11+
processes.

0 commit comments

Comments
 (0)