I've a class where I've autowired a list of type
Class A{
@Autowired
List<Super> supers;
}
@Qualifier("B")
Class BSuperImpl implements Super{....}
@Qualifier("C")
Class CSuperImpl implements Super{....}
@Qualifier("D")
Class DSuperImpl implements Super{....}
Now I want to write a code in Class A, where I can look upon the bean, based upon the qualifier like following, Without making my bean aware of the Context. Using Spring MVC 4.3
Class A {
@Autowired
List<Super> supers;
void process(String str){
// Code to do supers.applyMethod(getTheBeanWithQualifierAs(str));
}
}