12
Shouts

Atanas Hristov: Design Patterns – Chain of Responsibility Pattern - blog about programming.

published 893 days, 11 hours, 33 minutes ago posted by http://atanashristov.blogspot.com/http://atanashristov.blogspot.com/ 896 days, 18 hours, 37 minutes ago
Saturday, December 05, 2009 3:14:36 PM GMT Wednesday, December 02, 2009 8:10:11 AM GMT

Imagine you have complicated decision logic and you’ve got a big if-then-else like structure in your code which you want to simplify. The Chain of Responsibility Pattern is a good way for code refactoring in such situation. It will make the code more flexible and easy to support and modify in the future.

You prepare a set of interdependent chain handler classes linked in a chain. Every chain handler class implements part of the decision logic and has a link to next chain handler object. A request da...

category: Foundation | clicked: 0 | | source: atanashristov.blogspot.com | show counter code
tags: Design Patterns

1 comment posted.

To post your comment please login or signup