This chapter covers the Chain of Responsibility pattern.
GoF Definition
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.
Concept
In this pattern, you form a chain of objects in which you pass the responsibility of a task from one object to another until an object accepts the responsibility of completing the task. Each object in the chain can handle a particular kind of request. If an object cannot handle ...