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.
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.
Is there anything similar required to enable obfuscation for RequestFactory?
Regards,
zz