How to define a spring bean as jira spring component module in atlassian-plugins.xml fileFor example, how can i convert this spring bean in spring-beans.xml to jira component
<bean id="testSingleton" class="org.test.Test" scope="singleton"/>
Hello,
Try to use the scope annotation:
@Scope("singleton")
If it does not work, then you can read my artilcle here:
https://community.atlassian.com/t5/Jira-articles/Spring-Java-based-configuration-and-AOP-in-Jira-plugins/ba-p/762265
Thank you for answer. Your implementation is annotatiton based, but i need. xml based implementation in atlassian-plugin.xml
No, you can not set a scope in atlassian-plugin.xml. You should set it via annotation or in the main/resources/META-INF/spring/plugin-context.xml
Thank you for reply, i'll try it.
It looks like you're new here. Sign in or register to get started.