I just put up a new blog post on a proposed extension to the rules surrounding GWT.create(), see here: http://timepedia.blogspot.com/2009/03/relaxing-constraints-on-gwtcreate.html
The basic goal is to allow the creation of static utility methods that can narrow the type signature of GWT.create(), to decorate, wrap, or enhance (at runtime) the returned object, and to override the generator at the declaration site. I think this allows an improvement in usability and safety surrounding deferred binding, in particular: 1) trapping type errors earlier (edit time, javac compile-time) with narrower parameters and return types 2) JavaDoc for your own create methods explaining the function of the generator and what it will return. (currently, this documentation must reside in the interface) 3) runtime decoration of returned types (assertions on runtime state, wrappers, injection of runtime state, etc) 4) shorter and simpler invocation code in some circumstances, arguable readability improvement I'm wondering if anyone else likes this idea? -Ray --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
