Skip to content

Commit 30ea82d

Browse files
committed
Update README.md
1 parent c2baeb1 commit 30ea82d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@
128128
##Chain of responsibility
129129
**Intent:** Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.
130130

131+
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/chain/etc/chain.jpg "Chain of Responsibility")
132+
133+
**Applicability:** Use Chain of Responsibility when
134+
* more than one object may handle a request, and the handler isn't known a priori. The handler should be ascertained automatically
135+
* you want to issue a request to one of several objects without specifying the receiver explicitly
136+
* the set of objects that can handle a request should be specified dynamically
137+
131138
##Command
132139
**Intent:** Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.
133140

0 commit comments

Comments
 (0)