All 1 entries tagged Tips
View all 14 entries tagged Tips on Warwick Blogs | View entries tagged Tips at Technorati | There are no images tagged Tips on this blog
February 08, 2006
Useful Spring tips
Writing about web page http://www.onjava.com/pub/a/onjava/2006/01/25/spring-xml-configuration-best-practices.html?page=1
Nothing too outstanding here, and I am not sure I agree with all of the tips, but a useful page for newbies :)
In particular, I disagree with not using autowiring; autowiring by type is safer than byName, and is very useful. Maybe I am making this point too strongly; I think it is fine to either use it or not.
The point I most strongly disagree with is preferring setter injection over constructor injection. That is just plain wrong ;) Constructors for collaborators which the class requires to work, setters for optional parameters. Simple as that.
But all in all, a nice quick read.