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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -