Changes

Jump to: navigation, search

Chain of Responsibility

350 bytes added, 16:01, 2 April 2007
no edit summary
* The '''Chain of Responsibility ''' pattern uses a chain of objects to handle a request, which is typically an event. Objects in the chain forward the request along the chain until one of the objects handles the event. Processing stops after an event is handled.
[[Image:CoR1.jpg]]
[[Image:CoR_UML.jpg]]
The role of every class:
*'''Handler''' - defines an interface for handling requests
*'''RequestHandler:'''
**handles the requests it is responsible for
**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
----
 
----
 
== External Links ==
1
edit

Navigation menu