title: Guice and interface that has multiple implementations
body: <p>If I have interface Validator and multiple implementations for this interface. How can I inject any of the multiple implementations with Guice? Now I know that I can use following code to inject one, but it allows only one implementation:</p>
  
  <pre><code>public class MyModule extends AbstractModule {
    @Override 
    protected void configure() {
      bind(Validator.class).to(OneOfMyValidators.class);
    }
  }
  </code></pre>
  
  <p>What I would like to do is:</p>
  
  <pre><code>Validator v1 = injector.getInstance(Validator1.class);
  Validator v2 = injector.getInstance(Validator2.class);
  </code></pre>
  
  <p>Is it possible at all?</p>