community
directory
books
authors
images
encyclopedia

Email:
Password:
Register

Knowledgerush Search

 

Google
  Web knowledgerush


Search for images of Chain of responsibility pattern


Message boards   Post comment

Chain of responsibility pattern

In computer programming, chain-of-responsibility pattern is one of design patterns where command objects are coming from somewhere, processing logic is spread between a number of objects and the commands are distributed.

Each object is smart enough to know wither it can handle something, how to pass it off, and how to add to the end of the chain.

Permutations: Commands may be sent in alternate directions out, forming a tree of responsibility. Recursion could continue until the command is processed, or the entire tree has been explored.

An XML interpreter (parsed, but not yet executed) example might be fitting.

This pattern promotes the idea of loose coupling, a programming practice.

The article is originally from Perl Design Patterns Book

Referenced By

Design Patterns | Design pattern (computer science) | Design pattern (computing) | Software design pattern | Software desisgn pattern | Software pattern

 

Compose Your Message

Your Email Address or Pen Name (optional):
Subject:
Your Message:
 

 

 

 

 

 

This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Chain of responsibility pattern".

 

Contact UsPrivacy Statement & Terms of Use

 
Copyright © 1999-2003 Knowledgerush.com. All rights reserved.