How to get plugin descriptor of a Spring component?

Mikhail_Kopylov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2017

I've got a plugin with `META-INF/spring/spring.xml` that makes Spring components marked with `@Component` be automatically managed by OSGI container.

When I register a component in a regular way (in `atlassian-plugin.xml` in a section `<component key=...>`), I'm able to get it's descriptor via 

ComponentAccessor.getPluginAccessor().getPlugin( "my.plugin.key" ).getModuleDescriptor( "my.module.key");

But how to find a module descriptor of a component that was registered via Spring? I don't know it's key - only class name.

0 answers

Suggest an answer

Log in or Sign up to answer