I haven't tried it but I suppose you could implement the mapping on the server-side in a ServiceLayerDecorator's resolveRequestFactory method. The problem would be doing it on the client-side (both in the GWT generator and the VM implementation). A hackish way for GWT code could be to do a search/replace on the generated JS code. The proper way would be to add an annotation on the RequestFactory sub-interfaces that the generator and InProcessRequestFactory would use instead of the interface's binary name. Note that the ServiceLayerDecorator would still be needed on the server-side, but maybe we could provide a simple one.
Would you mind filing an issue in the tracker (if no one already did it) ? (it's a rather simple patch –change the implementation of getFactoryTypeToken()– so if you really need/want it, feel free to jump ahead and contribute it!) On Thursday, September 6, 2012 2:29:33 PM UTC+2, James Horsley wrote: > > I'm also very interested in this; I'd looked briefly going back but didn't > find anything either. > > On 5 September 2012 11:01, zz <[email protected] <javascript:>> wrote: > >> Hi, >> >> I've searched all over the web, but didn't quite get my question answered. >> >> How to obfuscate the type name of my request factory interface that >> extends RequestFactory? I can only see operations on service are obfuscated. >> >> For gwt-rpc, it's enabled by adding below to module file. >> <inherit >> name='com.google.gwt.user.**RemoteServiceObfuscateTypeName**s<http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/RemoteServiceObfuscateTypeNames.gwt.xml?r=9519>' >> >> /> >> >> Is there anything similar required to enable obfuscation for >> RequestFactory? >> >> Regards, >> zz >> >> -- >> 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/-/ggMXO4wGPiEJ. >> To post to this group, send email to >> [email protected]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> > > -- 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/-/7LShJ0O9v0MJ. 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.
