I have a project where I use heavily autowiring, e.g.
@Component("componentA")
public class ComponentAImpl implements ComponentA
@Component("componentB")
public class ComponentBImpl implements ComponentB {
@Autowired
private ComponentA componentA;
}
But I want customer to extend all the classes, so ideally they would just add a single jar into the classpath the the extended class should be used instead of the original one. What I think would be great if they could just set a different name for the bean, e.g.
@component("componentA-custom)
I just need some way to customize the autowire process to look for a bean with "-custom" at the end and load it instead of the original bean. Is there any way to do that?
Any help appreciated. Thank you, Mariusz