I have multiple injectors in a multi module project, and want to pass an already injected instance from module A to another Guice module B:
//module B
bind(DeleteEmployeeUseCaseFactory.class).toInstance(useCaseFactories);
//usecaseFactories comes from module A, and already injected
However this results binding exception in module B as guice tries to re-inject "usecaseFactories" members in moduleB where those dependencies not binded.
Why guice try to inject given instance's members, and how to avoid that?