hi there, i got into an issue with gin, like this: bind(MyMessages.class)in(SingleTon.class)
interface MyMessages extends Messages{ String txt1(); } @ImlementsBy(MyWidgetImpl.class) interface MyWidget { } @Singleton class MyWigetIml implements MyWiget{ @Inject MyMesages msg public MyWidgetIml(){ //bindUI... msg.txt1(); } } msg.txt1() always throws NPE. bind with EagerSingleton doesnt help either. a quick fix would be injecting MyMessages into the constructors, but if i have a tons of widgets which use MyMessages ( and probably other resources like Images), that'd be many repeated/boilerplate-codes. is there a a better way to do this ? thanx alot -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.