don't know if this is a double post (often i got error 316 on submitting a post or it is submitted but it is not displayed/posted properly?!) anyway i try again:
thx jayr but my problem is not on how to create MainModule and some classes that use injection. my problem is how to get an reference to injector. all examples are showing some main-method with Injector i = Guice.createInjector(new MainModule()); MyClass mc = i.getInstance(MyClass.class); but in case of guice -ing gwt rpc the incetor is instantiated in GuiceServletContextListener. My Question is: Should i create an separate injector for MainModule (i guess not)? or should i save the injector created in GuiceServletContextListener in a field (static?!) accessible via a second public/static method? -- You received this message because you are subscribed to the Google Groups "google-guice" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-guice/-/HLfwUVBj5xwJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
