Spring nonrequired properties in constructor?
<p>I want to inject a list of beans into a spring bean with constructor injection.</p>

<pre><code>@Component
public void MyBean {
    @Autowired
    public MyBean(List&lt;BeanToInject&gt; beanList) {
        ...
    }
}
</code></pre>

<p>But the implementations of the BeanToInject are in other modules. These modules might be turned off. If there is no implementation of BeanToInject in the applicationcontext, the spring throws an exception on start instead of injecting an empty list. What can I do?
(Setter and private property based autowiring is not an option for me.)</p>