Thursday, February 28, 2013

Re: RequestFactory issue with overloaded setters in domain type



On Thursday, February 28, 2013 11:18:22 AM UTC+1, Ignacio Baca Moreno-Torres wrote:
If you don't want to have a delegator DTO, you may try AOP. For example, with guice you can match the classes you have the NPE problem, and return null before de NPE.

or in this specific case, use a ServiceLayerDecorator whose getSetter returns the appropriate setter for the given known class and property name (or possibly do the right thing in setProperty, without the need to go down to the java.lang.reflect level)

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

No comments:

Post a Comment