Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-16800

Have Spring autowire objects that come from OSGi bundles

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Plugins 2 needs to properly construct objects that live in OSGi bundles.

      Under the old regime we used JiraUtils.loadComponent() for things like Listeners. This meant they could have things injected into their constructors – but only things that PICO knew about.

      With Plugins 2, they might instead want things to be injected by Spring. This would give them all the autowirey goodness that Spring can provide in the OSGi context.

      Our current behaviour is no worse than before, this would be new functionality but something that people are likely to expect in the brave new world of OSGi.

      We could address this in JIRA but the functionality is necessary in multiple products so I think it makes more sense to implement a solution in atlassian-plugins. I raised PLUG-338 to track this. Once Don adds it there we can fix it in JIRA.

              mlassau Mark Lassau (Inactive)
              jpendleton Justus Pendleton (Inactive)
              Archiver:
              mandreacchio Michael Andreacchio

                Created:
                Updated:
                Resolved:
                Archived:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h