Open GoogleCodeExporter opened 9 years ago
do you have any workaround for 2.0 in the mean time?
Original comment by fernc...@gmail.com
on 18 Mar 2009 at 1:24
No. I think this is a convenience/cosmetic (as opposed to functional) issue so
no
real work around is needed. I just use
Injector.getInstance(Key.get(<type literal>));
rather than directly (as I wish I could)
Injector.getInstance(<type literal>);
I suppose you can try adding somewhere a convenience method:
public static <T> T getInstance(Injector injector, TypeListeral<T> literal) {
return injector.get(Key.get(literal));
}
My patch simply adds this directly to the injector anyway.
Original comment by Rinsvind@gmail.com
on 18 Mar 2009 at 1:42
the above may be good fodder for the FAQ. Thanks! works fine.
Original comment by fernc...@gmail.com
on 18 Mar 2009 at 2:04
Original comment by limpbizkit
on 26 Apr 2009 at 9:44
Original comment by sberlin
on 19 Feb 2011 at 10:13
Original issue reported on code.google.com by
Rinsvind@gmail.com
on 2 Jan 2009 at 6:02Attachments: