Dependency injection: Scoping by region (Guice, Spring, Whatever)
- by Itay
Here's a simplified version of my needs.
I have a program where every B object has its own C and D object, injected through Guice. In addition an A object is injected into every C and D objects.
What I want: that for each B object, its C and D objects will be injected with the same A object.
Specifically, I want the output of the program…