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<http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/web/bindery/requestfactory/server/ServiceLayerDecorator.html#resolveClientType(java.lang.Class,
 
java.lang.Class, boolean)>. 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to