Re: Custom mapper for mapping entity to rf proxy
On Friday, April 20, 2012 10:56:02 AM UTC+2, -sowdri- wrote:
RF automatically maps entities to RF Proxy. Is there a way in which we could pass a custom mapper?
Almost everything in RequestFactory on the server side is done by a ServiceLayerDecorator; in this case resolveClientType. The default implementation uses the DeobfuscatorBuilder that's being generated by the ValidationTool (or equivalent annotation processor during compilation); but you can very-well make your own DeobfuscatorBuilder instead of relying on automatic generation (we do just that in our project, because we have properties on our proxies with no direct equivalent on our domain objects, the property is "implemented" by a custom ServiceLayerDecorator overriding the getProperty and setProperty methods).
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bvTFyKADADcJ.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home