Tag Archives: design

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 , , , , , , , , , , , | 21 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

The Open-Closed Principle: The heart of object oriented design

I have a question for you guys and girls. This morning, I was reading through the Spring documentation about the Web MVC framework. In a side-note, “Open for extension…”, SpringSource referred to a paper about the design principle “Open for … Continue reading

Posted in Java, Object Oriented Design | Tagged , , , , | 3 Comments