All Questions
3 questions
0
votes
3
answers
662
views
Java Library - How to do Pure Dependency Injection When State is a Factor?
To set the stage, I am trying to do pure dependency injection for a Java Library I am creating to make it more testable. As it is a library, I want to do pure dependency injection without creating a ...
0
votes
2
answers
183
views
Inversion of control
I have been reading about inversion of control and dependency injection and I was wondering the following.
Is there a good way to tell when it is okay to initialise an object inside a method body of a ...
1
vote
1
answer
1k
views
Limits of dependency injection
I use dependency injection with Guice and most of the time, I'm rather happy with it. But sometimes, it's difficult to get the dependencies to where they're needed and sometimes, it's plain impossible....