<snip>
On 2/19/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
>
>
> >
> > If I understand correctly, in CoR pattern a client calls the chain
> > head and "the request propagates along the chain until a
> > ConcreteHandler object takes responsibility for handling it." (GoF)
>
>
> That's the most important sentence in the GoF description ... and the one
> that motivated the API design for a Comman in Commons Chain.
>
> </snip>

Craig is sure right that this is the most important sentence.  It is the one
that keeps each link in the chain ignorant of the rest.  Now, go look at
ChainBase in commons and you will see that this is NOT the API design in
commons chain.  The Command, hopefully, but NOT, would be part of a command
pattern.  ChainBase, NOT Command, hopefully, but NOT, would be part of a
chain pattern.


--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

Reply via email to