Hello,
I am trying to access some Greenhopper services out of my plugin. For this I take a look into the sources and found this class definition:
@ExportAsService
@Service
public class ManagedCustomFieldsServiceImpl implements ManagedCustomFieldsService {
[...]
}
As I understood classes with this annotation are for public usage. But if I add this to my plugin class:
@Inject
public MyPluginClass(ActiveObjects activeObjects, @ComponentImport ManagedCustomFieldsService mcfs){
this.mcfs = mcfs;
}
I am getting this error:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.atlassian.greenhopper.api.customfield.ManagedCustomFieldsService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport(value=)}
[INFO]
What do i wrong or what I am missing?
Thorsten
Hey guys...no answer?
Wondering why this is so difficult to manage...
I am also currently facing the exact same issue.
Have you found a solution for this? @Thorsten Kamann
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.