Object Recursion


By: B. Woolf

Summary: Handle a request over a structure by delegating it polymorphically. A request can be decomposed repeatedly into smaller parts.

Pattern: Object Recursion

Handle a request over a structure by delegating it polymorphically. A request can be decomposed repeatedly into smaller parts. An initiator makes a request of a handler. The handler does what it needs to do, then passes the request on to its successor--another handler--and returns a result based on the successor's result.


Published in: PLoPD4
Pages: 41-51
Category: Behavioral