I have tried different combinations of modules and child injector before. I have gotten it to work in one application, but not this one. This is a guice servlet app and in ServletModule#getInjector() you can only return one Injector and I do not end up with any access to the bindings created in the child injector.
I have also gotten the following error before: Unable to create binding for com.MyClass. It was already configured on one or more child injectors or private modules. I have tried so many different scenarios that I have forgotten what scenario created this error. I basically gave up on the child injector solution thinking it would just not work with Guice Servlet. Thanks, Warren Bell On 2/23/12 12:55 PM, Colin Decker wrote: > If you need to do more complex configuration, you could use a child > injector approach (or even just two completely separate injectors if you > won't need the bindings from the injector used for the settings service > again after creating the second injector). What are the problems you've run > in to with that approach? > -- You received this message because you are subscribed to the Google Groups "google-guice" group. 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.
