Tag Archives: dependency injection

I was wrong: Constructor vs. setter injection

Reading books or reference documentation is always good to get new ideas or to gain new insights. While reading the Spring reference documentation, I realized I was wrong! In one of my previous blog posts about Dependency Injection vs. Service … Continue reading

Posted in Java, Object Oriented Design, Spring | Tagged , , , , , , , , , , , | 23 Comments

Dependency Injection vs. Service Locator

Again, while reading through the Spring documentation, I came across this article of Martin Fowler. I’ll try to give a summary of his article and my opinions about it. Introduction Every professional software engineer should know what dependency injection or … Continue reading

Posted in Java, Object Oriented Design, Spring | Tagged , , , , , , | 8 Comments