You could use PrivateModules. Any bindings that need to be shared could be installed in either the top-level injector, or in each of the PrivateModules.
When you don't want bindings to be shared between private modules, be sure to include bindings for the implementation types. Ie. you need both of these lines: bind(MyInterface.class).to(MyImplementation.class); bind(MyImplementation.class); Otherwise the binding for MyImplementation may go in the top-level injector. Cheers, Jesse -- 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.
