From: David Peterson <da...@randombits.org>
Date: Fri, 3 Jul 2009 07:55:27 -0700 (PDT)
Local: Fri, Jul 3 2009 10:55 am
Subject: Re: Best practice to implement Command Pattern RPC on server?
Hey ClusterCougar,
I think your implementation is over-complicated. On the client side,
Then, on the server side, I've got 'ActionHandler' classes, which look
public interface ActionHandler<A extends Action<R>, R extends Result>
public R execute( A action ) throws Exception;
}
You then register your various ActionHandler instances with your
'RPCService' and it just matches up the action passed in with the appropriate action handler, calls execute and you're off to the races. Sorry about the incomplete example - the code itself is tied up in the
David
On Jun 30, 8:05 pm, ClusterCougar <nwwe...@gmail.com> wrote:
> I thought I posted this last night, but I don't see it. Apologies if
> this is a dupe. > I've tried to implement the command pattern using generics, but have
> http://code.google.com/p/gwt-command-pattern/
> Hangups:
> 1) Too many parameters. It's just not pretty
> on a class: @GWTIgnoreReference(ServerSideClass.class)
> I think there are many justifiable use cases for this type of thing,
> Thanks,
> On Jun 25, 4:07 pm, Eric <erjab...@gmail.com> wrote:
> > On Jun 25, 5:12 pm, Herme Garcia <hgar...@peoplecall.com> wrote:
> > > Hi,
> > > After listening carefully Google IO's session from Ray Ryan about
> > >http://code.google.com/intl/es-ES/events/io/sessions/GoogleWebToolkit...
> > > He suggests acommandpatternimplementation for RPC calling (see
> > Ray,
> > If you're reading this, can you tell us if the full code for your
> > currentContactId = currentContactId;
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||