
Software Design – Chain of Responsibility Pattern
This episode covers a pattern that is not as well known as some of the recent ones. This time we look at the chain of responsibility pattern. This is also our first foray into the behavioral patterns. These may be techniques you have used without knowing they had a formal name or related pattern. The Chain of Responsibility Pattern Defined As always, we will start with the “Gang of Four” intent to set the stage for our discussion. “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.” This intent is a lengthy one. ... Read more