I have a base plugin A based on atlassian-spring-scanner 2+ and I have additional plugins B, C, D, etc. based on atlassian-spring-scanner 2+ too.
In all of the additional plugins(B, C, D,..) I have spring @Component implemented some interface from A.
I need dynamically find those components from plugin A. How can I achieve that?
I've tried to use:
Map<String, CustomLogicProvider> beansOfType = beanFactory.getBeansOfType(CustomLogicProvider.class)
but it founds only components from plugin A. It looks like I need somehow merge OSGi classloaders from all of those plugins or something else, but I can't find a way to do that.