aral at ariaware.com
Mon Feb 7 07:21:01 PST 2005
I am actually thinking that the CommandTemplate is
(1) Pretty much useless as the only thing it does is save a reference to
the viewRef (which you can easily do yourself in the execute() method)
(2) Obscures the otherwise simple Command pattern by changing the
execute() method to executeOperation() and, finally (releated to your email)
(3) Shouldn't dictate that the onStatus/Result handlers be defined
Thus (especially with regards to #3), I am thinking it would be a good
idea to remove the CommandTemplate altogether in the upcoming version
I would, of course, appreciate your thoughts on this.
All the best,
Omar Ramos wrote:
>Hi all again,
>I was wondering if would it also be good to have the command with
>naming convention on the result and status operations? So if you have
>a GetCustomersCommand then you would have OnCustomersCommand_Result or
>OnCustomers_Result. The controller templete can then just pass the
>name of the command on the constructor to the command for the naming.
>Then we only need to implement the execute eperation on commands.
>Would this be any good?
More information about the Arp