title: How to @Autowire list of beans by Trait?
body: <p>I try to @Autowire list of beans by Trait and I get error:</p>
  
  <blockquote>
    <p>Unsatisfied dependency expressed through constructor argument with index 0 of type [scala.collection.immutable.List]: : No qualifying bean of type [scala.collection.immutable.List] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [scala.collection.immutable.List] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency.</p>
  </blockquote>
  
  <p>Is possible to do it like in Java? Below my Scala code:</p>
  
  <pre><code>trait ProductDataProvider {
     def collect()
  }
  
  @Component
  class SomeProvider() extends ProductDataProvider {
     override def collect(): Unit = ...
  }
  
  @Component
  class ProductDataSourceFactory @Autowired()(providers: List[ProductDataProvider])() {
     def get(source: ProductDataSource.Value): ProductDataProvider = ...
  }
  </code></pre>
  
  <p>I will be glad if you point me good direction.</p>