Changes

Jump to: navigation, search

Chain of Responsibility

24 bytes added, 21:10, 2 April 2007
no edit summary
*'''Broken Chain'''
**Sometimes we could forget to include in the implementation of the handleRequest method the call to the successor, causing a break in the chain. The request isn’t sent forward from the broken link and so it ends up unhandled.
 
----
**If it can handle the request it does so, otherwise it sends the request to its successor
* '''Client''' - sends commands to the first object in the chain that may handle the command
 
----
== Code Examples ==
 
----
 
=== Java Example ===
Some Code.....
----
1
edit

Navigation menu