I have an Interface and multiple implementation classes, around 10, of this interface.
I have a naming convention like prefix + name + suffix so during runtime, I can add
@Autowired
private Map<String, MyInterface> myImplementations;
and then access the implementation class with myImplementations.get() method.
Is there a better way of accessing those implementations? I only know which impl. I needed during runtime, changes depends on the message I received.