A magic method injector for the method X_AutoUi.makeUi:
public static > U makeUi(T model, Class extends T> uiOptions, Class uiType)
This magic method will create a generated class that is much more efficient at runtime than
what the default code does (via reflection). At present, sending non-class literals to this
method is not supported. It can be supported by using reflection in Gwt, but it requires a lot
of reflection which comes with a lot of overhead, and will not be supported unless there is a
very compelling use case offered.
If you do want to use an abstraction where you do not know the literal types when you invoke
the ui generator, simply create a factory abstraction which does know the literal types,
and pass those around to do your decoupled ui generation.