File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Use of Qualifiers in Autowiring
Joined: Sep 26, 2006
Nov 08, 2009 13:16:13
Why would I use a Qualifier attribute when I autowire my beans?
SCWCD 1.4 - Hints for you
, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joined: Sep 11, 2006
Nov 08, 2009 19:59:56
@Autowired is fundamentally about type-driven injection. If you have more than one beans with that have the same type, you need to use @Qualifier to tell which bean that you're referring to.
I prefer to use @Resource for such case, though.
SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
I agree. Here's the link:
subject: Use of Qualifiers in Autowiring
All Vowels in an Integer
Best way to update a Entity.
Protect riskey Chat meetings ...
doubt related to "++" operator
[Struts2] how to redirect to the current page with param ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015