Here's a dirty hack that I've never tried but which may work...
If your ClientBundleWithLookup doesn't change too often, you could
pre-generate the implementation through a GWT-compile (with the -gen
option). Once you have the class (or classes?) add them to your project.
Then you have two options:
1) The simples: directly instantiate this generated class implemening
your ClientBundleWithLookup (instead of using GWT.create on the interface.)
2) Keep on using GWT.create on the interface but add a <replace-with> line
in your GWT module.
The advantage of (2) is that you can go back to the auto-generated class
simply by commenting out the <replace-with>
One problem might happen if different implementations are generated by GWT
for different browsers (i.e. when you do -gen the implementation classes you
get for the different permutations are different from one another). In this
case, you will either have to restrict yourself to using dev mode on a
single browser, or you will have to provide a cascade of conditional
<replace-with> for the different pre-generated implementations.
If you try this or anything else, please comment back on this thread as I'm
interested!
Cheers,
Philippe
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
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.