I was getting all fired up to use dependency injection with some presentation layer classes, for example, by creating a setLog(Log log) method to inject the class Log (or instead maybe the Log Factory) for each class to use...
Then I looked at the "Spring How-To" for building an MVC application step-by-step and noted with dismay that the example code is calling:
Hmmm... No DI there. So my questions are:
- Is this an overly simple example or are system utilities simply inappropriate for dependency injection?
- Are some dependencies more appropriate for DI than others?
I await your philosophical discourse! --Dan