Chain of Responsibility


Design Pattern for passing requests along a chain of handlers. Each handler decides whether to pass the request to the next or to stop it.

We create a Handler class describing a common interface, containing a single method to handle requests, and one more to set the next handler.

The concrete Handlers contain the code to handle the requests. They either modify and forward the request, or stop it.

META

Status:: #wiki/notes/mature
Plantations:: Design Patterns
References:: Dive Into Design Patterns