GWT Generator not called with GIN Injection -
i have declared generator in gwt module descriptor , seems not called when class trigger generator instanciated via ginjector.
public interface myginjector extends ginjector { mywidget getmywidget(); } public class myentrypoint implements entrypoint { public static final myginjector injector = gwt.create(myginjector.class); public void onmoduleload() { mywidget mywidget = injector.getmywidget(); // [1] mywidget mywidget = gwt.create(mywidget.class); // [2] rootpanel.add(mywidget); } }
[1] generator not called.
[2] generator called.
does mean gin injector not instanciate object through gwt.create() method?
thanks help. kind regards,
afaik, gin (at least until 1.5) generate gwt.create()
if class has public zero-arg constructor that not annotated @inject
(otherwise it'll new
on it)
Comments
Post a Comment