title: How to retrieve all instances that matches a given type using Koin Dependency Injection (Kotlin)
body: <p>How do you achieve the following using Koin DI:</p>
  
  <pre><code>single { AValidator() } bind IValidator::class
  single { BValidator() } bind IValidator::class
  single { CValidator() } bind IValidator::class
  single { DValidator() } bind IValidator::class
  </code></pre>
  
  <p>In the class where I want to have all validators injected I use the following:</p>
  
  <pre><code>val validators: List&lt;IValidator&gt; by inject()
  </code></pre>
  
  <p>Expecting that all different implementations of interface <code>IValidator</code> are injected automatically.</p>
  
  <p>I know that is actually supported in Kodein, where you would simply do:</p>
  
  <p><code>val validators: List&lt;IValidator&gt; by kodein.allInstances()</code></p>
  
  <p>Would love to know whether this is possible within Koin.</p>
  
  <p>Thanks!</p>