I've tried to do something like this:
@Singleton
public class AAA implements EntryPoint, HistoryListener
{
private BBB bbb;
private CCC ccc;
private DDD ddd;
private EEE eee;
@Inject
public AAA(BBB bbb, CCC ccc, DDD ddd, EEE eee)
{
this.bbb = bbb;
this.ccc = ccc;
this.ddd = ddd;
this.eee = ee;
}
.........
}
The result is null to all instances.. I expected this way to work...
I know i could do something like this for example
private final MyGinjector injector = GWT.create(MyGinjector.class);
injector.getAAA()
and so on..
Why the first way i have tried does not work for me? Any suggestions?
Thanks