Author Archive for Alef Arendsen

Setter injection versus constructor injection and the use of @Required

A couple of month ago, we start publishing polls on www.springframework.org asking people to provide their feedback about Spring, some of its features and how they are using those features. The first question I posted was whether or not people were checking required dependencies and if so, what mechanisms they used. I quickly followed up Read more…

So should you still use Spring's HibernateTemplate and/or JpaTemplate??

I was reading an article by Vigil Bose on TSS the other day and saw the usage of the HibernateDaoSupport class. Since this is no longer a recommended way of using Hibernate from Spring, I thought I might as well just blog about it another time. With the advent of Spring 2.0, it has become Read more…

Source for demos shown at NL-JUG session June 13th 2007

Yesterday, Joris and I gave a session at the Dutch Java Users Group. We did the session twice and had about 250 people in total attending the sessions. A lot of people asked for the code for the demos we did during the sessions. Attached you'll find the code for the AOP and Dependency Injection Read more…

ASM version incompatibilities, using Spring @Autowired with Hibernate

I was working on Spring 2.1 stuff this week with Joris. We were preparing a sample using all three ways of doing dependency injection. The sample does not only highlight dependency injection, but also features a back-end based on Hibernate. Several features in Spring 2.1 require the ASM byte code manipulation framework. Hibernate also uses Read more…

Spring: simple, not simplistic…

…and a little tale about why Spring does not necessarily lead to less code and certainly wasn't designed with this in mind (although of course it is a nice side-effect).

Amsterdam Java Meetup scheduled for April 13th

Mark you calendars! In about two weeks, I'm hosting another Amsterdam Java Meetup; the quarterly event in the Netherlands where all people that have something to do with Java (but hey, we're friendly; .NET guys are welcome too!) can have a chat and a drink. No technical sessions, no presentations, no keynotes, just drinks and Read more…

CarPlant not accepting null CarModels

Last Friday I finished a training session at a client of ours. Because I had some time to kill in the hotel I was staying in, I polished the sample application I coded up during the training to post it online for the guys of the training. Usually I try to find a little sample Read more…

New on the Spring forum: regular polls

A while ago, we were thinking about doing a big survey among Spring users to render feedback about parts of the framework. We'd include questions like 'which Java version are you using', but also ask you which Spring feature you like, dislike, et cetera. Partially because of lack fo this, but also because for now, Read more…