For a widget I'm creating I've got a generator which creates the
required class. Now I have a requirement to create another class (and
possibly more) for the same generator marker interface. Can this be
done? ie - can a single generator return more than 1 created class?

I really won't to avoid creating multiple marker interfaces that the
user (using this widget) would have to use (in a repetitive -
boilerplate code kinda way) - especially if a single generator (for a
single marker interface) can create multiple classes.

I have thought of the following solution, but would like to get
thought of experts on following it - as it seems quite a ways out :)

MarkerI1 extends RemoteService
MarkerI2 extends MarkerI1

write 2 generators - each for MarkerI1 and MarkerI2

user only needs to extend markerI2

extending for MarkerI3 seems a really ODD way of doing this (if it can
be done this way)

Just had this idea as I was writing: can I run the same marker
interface through multiple generators like the following?

  <generate-with
class="rm.gwt.activetable.rebind.ActiveTableGenerator1" >
      <when-type-assignable
class="rm.gwt.activetable.client.model.ActiveTableEntity"/>
  </generate-with>
  <generate-with
class="rm.gwt.activetable.rebind.ActiveTableGenerator2" >
      <when-type-assignable
class="rm.gwt.activetable.client.model.ActiveTableEntity"/>
  </generate-with>
  <generate-with
class="rm.gwt.activetable.rebind.ActiveTableGenerator3" >
      <when-type-assignable
class="rm.gwt.activetable.client.model.ActiveTableEntity"/>
  </generate-with>






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to