Skip to content

Commit b9b0792

Browse files
committed
Update README.md
1 parent 38feb88 commit b9b0792

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
* [Model-View-Presenter](#model-view-presenter)
3838
* [Double Checked Locking](#double-checked-locking)
39+
* [Servant](#servant)
3940

4041
## <a name="abstract-factory">Abstract Factory</a> [&#8593;](#list-of-design-patterns)
4142
**Intent:** Provide an interface for creating families of related or dependent objects without specifying their concrete classes.
@@ -317,7 +318,7 @@
317318
* there is a concurrent access in object creation, e.g. singleton, where you want to create single instance of the same class and checking if it's null or not maybe not be enough when there are two or more threads that checks if instance is null or not.
318319
* there is a concurrent access on a method where method's behaviour changes according to the some constraints and these constraint change within this method.
319320

320-
##Servant
321+
## <a name="servant">Servant</a> [&#8593;](#list-of-design-patterns)
321322
**Intent:** Servant is used for providing some behavior to a group of classes. Instead of defining that behavior in each class - or when we cannot factor out this behavior in the common parent class - it is defined once in the Servant.
322323

323324
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/servant/etc/servant-pattern.png "Servant")

0 commit comments

Comments
 (0)