-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 3.0
-
Component/s: Core - OSGi Plugins Platform
Quite a few of the Spring components we expose to plugins share interfaces. This breaks plugins that expect to get just one bean injected with an error message like this:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.cache.CacheFactory] is defined: expected single matching bean but found 2: [cacheManager, transactionalCacheFactory]
We should ensure that host components are only exported with an interface which is unique to them, and we don't expose any components which don't have an interface.