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 Locator, specifically in the part “The final clash... Continue reading
Share
Posted in Java | Tagged , , , , , , , , , , , | Leave a comment

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 on this link. My idea was to create an enterprise application on this schema to practice... Continue reading
Share
Posted in Java | Tagged , , , , , , , , | Leave a comment

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 on this link. My idea was to create an enterprise application on this schema to practice... Continue reading
Share
Posted in Java | Tagged , , , , , , , , | Leave a comment

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 inversion of control is about, but i’ll... Continue reading
Share
Posted in Java | Tagged , , , , , , | Leave a comment

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 extension, closed for modification”. A... Continue reading
Share
Posted in Java | Tagged , , , , | Leave a comment

Hibernate enum UserType Test

At my current project, I’ve encountered something that seemed quite strange, but in the end was so logical. To make sure that I remember what I’ve learned and to share my knowledge with others, I’ve written this blog post. For this post, I’ve borrowed and adapted some code from... Continue reading
Share
Posted in Java | Tagged , , , , , | Leave a comment

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 configuration to annotations. XML vs. Annotations Different... Continue reading
Share
Posted in Java | Tagged , , | Leave a comment

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 the technicalities with some example code. Background information I had... Continue reading
Share
Posted in Java | Tagged , , | Leave a comment