I've developed an XML marshalling library. It currently works by scanning through ALL types looking for annotated classes. I would like to support running the generating code from a list of classes instead of scanning, but there's no reasonable way of supplying parameters in this use case.
The only technique I'm aware of is to use an abstract class or an interface as the deferred binding type and get the information from type signatures of methods for fields. This is a bit messy when it's used in this way. What I'd like to do is pass a list of classes to a GWT.create() call, so these are available to a code generator. Something like: <T> GWT.create(Class<T> clazz, Object... params) Which would allow this: XMLContext c = GWT.create(XMLContext.class, Person.class, Company.class, Address.class); Is there any hope of extending GWT.create() to work this way? Is there a different technique I'm missing that might accomplish this? Should I just stick to requiring annotations and scanning all types? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
