use constructor injection for all mandatory collaborators and setter injection for all other properties.

http://blog.springsource.org/2007/07/11/setter-injection-versus-constructor-injection-and-the-use-of-required/

Advertisements