Let's say I have a "SomeInterface" and I have two springComponentImpl that implements that "SomeInterface".
I know I can autowire both implementations, together at once, with:
@Autowire
private List<SomeInterface> springComponentsImplList;
Could I inject them in a way like this?:
@Autowire
private Map<String,SomeInterface> springComponentsImplList;
So that way I could get the implementation by a "key"? It would be perfect if that key is the class name or something and generated automaticaly.
Thanks!