Category Archives: Spring

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 , , , , , , , , , , , | 24 Comments

Spring 3.1 Unified property management: before and after

My pet project Sometimes in between, I work on a little pet project of mine. If you download the Oracle XE Database, you get an HR example schema with it. You can check out the HR schema’s layout and contents … Continue reading

Posted in Java, Spring | Tagged , , , , , , , , | 5 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

Spring FactoryBean-managed wiring: Part 2

I finally succeeded in getting rid of the XML configuration for the Spring container, and managed to wire everything using Spring annotations. This post will describe what changes I had to make and what issues I experienced when converting the … Continue reading

Posted in Java, Spring | Tagged , , | 2 Comments

Spring FactoryBean-managed wiring

For my first post I’ll cover a client’s request on one of my projects, and how I was able to implement it. First I’ll explain some background information as to how I got to the subject, and I’ll then explain … Continue reading

Posted in Java, Spring | Tagged , , | 3 Comments