Chain of Responsibility (cont’d)
Consequences
- reduced coupling
- sender and receiver don’t have to know each other
- hierarchical responsibilities
- request can fall off the end of a chain without being handled
Implementation
- common base class or interfaces define operations that are propagated along the chain
Known Uses
- event handling in graphical applications
- inheriting attributes in composites
Related Patterns
- often used in conjunction with Composite
- Component’s parent acts as successor