ExportDownloadResourceManager can't be autowired in atlassian-plugin-sdk-3.0-beta5

XMLWordPrintable

      Using the SDK I am tryin to wire up ExportDownloadResourceManager through constructor injection.
      The class activation is failing because of

      org.springframework.beans.factory.UnsatisfiedDependencyException: 
      Error creating bean with name 'XXXX': 
      Unsatisfied dependency expressed through constructor argument with index 2 of type [com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager]: : 
      No unique bean of type [com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager] is defined: 
      Unsatisfied dependency of type [class com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager]: 
      expected at least 1 matching bean;
      

      I have solved the problem by wiring the property "manualy" using

      ContainerManager.getComponent("exportDownloadResourceManager")
      

      but this is hardly ideal.

      There is a forum post about this issue at http://forums.atlassian.com/thread.jspa?threadID=37519&tstart=0

      and there is documentation suggesting that my initial approach would be effective at
      http://confluence.atlassian.com/pages/viewpage.action?pageId=107185152
      Thisis actually a code sample that would expose the problem: exportDownloadResourceManager is not automatically injected in the setter.

            Assignee:
            Agnes Ro
            Reporter:
            Patrick Roumanoff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: