Chain of responsibility
-
Chain of responsibilityModeling/DesignPattern 2020. 2. 29. 19:06
1. Overview We need to avoid coupling the code which sends a request to the code which handles that request. Typically the code which wants some request handled calls the exact method on an exact object to processing it, thus the tight coupling. Chain of responsibility solves this problem by giving more than one object, chance to process the request. We create objects which are chained together ..