Wednesday, September 21, 2011

Re: runAsync + clientBundle = ❤ ?

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':
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate