Re: gwt superdevmode revisited
On Tuesday, July 9, 2013 2:44:07 PM UTC+2, stuckagain wrote:
Jens,Is there some documentation available that explains how to convert a generator to an incremental one ? In my project we have a few of them so for the future it might be better that I migrate them.
Nothing that I know about.
You have to extend IncrementalGenerator rather than Generator: http://www.gwtproject.org/javadoc/latest/com/google/gwt/core/ext/IncrementalGenerator.html
From the GeneratorContext you can get the CachedGeneratorResult that tells you the timestamp of the last generation for staleness checks.
generateIncrementally has to return a RebindResult that tells GWT whether and how to use cached data, and where you can putClientData that you can later retrieve (in a later invocation of the generator) through the CachedGeneratorResult.
Have a look at AbstractClientBundleGenerator and ServiceInterfaceProxyGenerator, the only two IncrementalGenerators to date.
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home