Tuesday, November 30, 2010

Re: ServiceLayer API and SimpleRequestProcessor Issue

On 29 nov, 18:36, Eugene Goncharov <eugene.goncha...@teamdev.com>
wrote:
> Dear Team,
>
> I'm working on the project right now that is based on the Google
> technologies stack(GWT, Guice, Google App Engine). My team and I
> wanted to make the overall project structure in domain-driven design
> style, so after the latest changes to GWT(the ones that currently in
> trunk version) I've started to implement our custom ServiceLayer in
> order to use repositories injected by Guice for the persistence layer.
> In that custom ServiceLayer implementation I was hoping to be able to
> avoid static finder methods for persistent entities.
>
> Everything goes fine with implementation of ServiceLayer API. BUT I've
> got a problem with SimpleRequestProcessor and its
> decodeInvocationArguments method.
>
> SimpleRequestProcessor still believes that all Request methods should
> be static and it causes a
> java.lang.NullPointerException
[...]
> The question is what is the right way to implement non-static Request
> methods for persistent entities (like findProject(id))?
> Maybe you can consider providing some kind of API to switch the
> RequestProcessor instance?

See http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1
and, more specifically, http://code.google.com/p/google-web-toolkit/issues/detail?id=5680

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment