How to import ColumnLayoutItemFactory in class?


#1

I try to import ColumnLayoutItemFactory in java class but it can be enable our plugin.
My code:

@Component
public class SubtaskIssueLayouts {

  private final ColumnLayoutItemFactory columnLayoutItemFactory;
  private final TableLayoutUtils tableLayoutUtils;
  private final SubTaskService subtasks;

  @Autowired
  public SubtaskIssueLayouts(
      @ComponentImport ColumnLayoutItemFactory columnLayoutItemFactory,
      @ComponentImport TableLayoutUtils tableLayoutUtils,
      @ComponentImport SubTaskService subtasks) {
    this.columnLayoutItemFactory = columnLayoutItemFactory;
    this.tableLayoutUtils = tableLayoutUtils;
    this.subtasks = subtasks;
  }

...

It can’t enable our plugin. The log bug


2019-01-11 11:21:54,103 QuickReload - Plugin Installer INFO      [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.mgmtp.jira.addon.issue-panels-addon], 0 seconds remaining
2019-01-11 11:21:55,005 Spring DM Context Creation Timer WARN      [o.e.g.b.e.i.dependencies.startup.DependencyWaiterApplicationContextExecutor] Timeout occurred before finding service dependencies for [NonValidatingOsgiBundleXmlApplicationContext(bundle=com.mgmtp.jira.addon.issue-panels-addon, config=osgibundle:/META-INF/spring/*.xml)]
2019-01-11 11:21:55,005 Spring DM Context Creation Timer ERROR      [c.a.p.osgi.factory.OsgiPlugin] Plugin 'com.mgmtp.jira.addon.issue-panels-addon' never resolved service '&columnLayoutItemFactory' with filter '(&(objectClass=com.atlassian.jira.web.component.subtask.ColumnLayoutItemFactory)(objectClass=com.atlassian.jira.web.component.subtask.ColumnLayoutItemFactory))'
2019-01-11 11:21:55,005 Spring DM Context Creation Timer ERROR      [c.a.p.osgi.factory.OsgiPlugin] Unable to start the plugin container for plugin 'com.mgmtp.jira.addon.issue-panels-addon'
org.springframework.context.ApplicationContextException: Application context initialization for 'com.mgmtp.jira.addon.issue-panels-addon' has timed out waiting for (&(objectClass=com.atlassian.jira.web.component.subtask.ColumnLayoutItemFactory)(objectClass=com.atlassian.jira.web.component.subtask.ColumnLayoutItemFactory))
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
2019-01-11 11:21:55,009 Spring DM Context Creation Timer ERROR      [o.e.g.b.e.internal.support.ExtenderConfiguration] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.mgmtp.jira.addon.issue-panels-addon, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.context.ApplicationContextException: Application context initialization for 'com.mgmtp.jira.addon.issue-panels-addon' has timed out waiting for (&(objectClass=com.atlassian.jira.web.component.subtask.ColumnLayoutItemFactory)(objectClass=com.atlassian.jira.web.component.subtask.ColumnLayoutItemFactory))
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
2019-01-11 11:21:55,009 Spring DM Context Creation Timer ERROR      [o.e.g.b.e.i.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.mgmtp.jira.addon.issue-panels-addon], unsatisfied dependencies: Dependency on [(&(objectClass=com.atlassian.jira.web.component.subtask.ColumnLayoutItemFactory)(objectClass=com.atlassian.jira.web.component.subtask.ColumnLayoutItemFactory))] (from bean [&columnLayoutItemFactory])
org.springframework.context.ApplicationContextException: Application context initialization for 'com.mgmtp.jira.addon.issue-panels-addon' has timed out waiting for (&(objectClass=com.atlassian.jira.web.component.subtask.ColumnLayoutItemFactory)(objectClass=com.atlassian.jira.web.component.subtask.ColumnLayoutItemFactory))
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)