When in doubt, pass the -gen argument to the DevMode or Compiler and look at the code that's been generated.
Looking the code (or rather, its javadoc), it seems like everything inside a ClientBundle generated class is 'static': http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/resources/rebind/context/AbstractClientBundleGenerator.java That means that it makes no difference whether you GWT.create() a new instance each time you need it, or use a singleton. And the compiler will correctly "dispatch" the initialization code of each resource within the appropriate "fragment" created by a runAsync. In other words, yes: runAsync + clientBundle = ❤ ! -- 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/-/fskGHN_xyu8J. 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.
