Hi Ronald, It currently isn't possible to trigger a generator based on an annotation, but that is soon to change (see Issue #1206 linked below). The current way you could implement the functionality you're looking for would be to use a marker interface and an assignable-based generator to generate the given class.
You can read about this on the GWT Developer Guide at the link below: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideDeferredBindingGenerators Issue #1206: http://code.google.com/p/google-web-toolkit/issues/detail?id=1206 Hope that helps, -Sumit Chandel On Thu, Nov 27, 2008 at 2:04 PM, rmuller <[EMAIL PROTECTED]> wrote: > > Hallo, > > Is it possible to trigger deferred binding based on an annotation, so: > > <generate-with class="example.rebind.FooGenerator"> > <when-*annotated* class="example.client.Baz" /> > </generate-with> > > So you can use it like this: > Foo foo = GWT.create(class annotated by Baz) > > Regards, > > Ronald > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
