title: Google guice - multibinding + generics + assistedinject
body: <p>I have the following classes :</p>
  
  <pre><code>public interface Factory&lt;T extends MyParentClass&gt; {
      public T create(String parameter);
  }
  
  public class FactoryImpl1 implements Factory&lt;MyChildClass1&gt; {
      public MyChildClass1 create(String parameter){
      ...
      }
  }
  
  public class FactoryImpl2 implements Factory&lt;MyChildClass2&gt; {
      public MyChildClass2 create(String parameter){
      ...
      }
  }
  
  public class MyModule extends AbstractModule {
      @Override
      protected void configure() {
          MapBinder&lt;String, Factory&lt;MyParentClass&gt;&gt; factoryMap = MapBinder.newMapBinder(binder(), new TypeLiteral&lt;String&gt;() {}, new TypeLiteral&lt;Factory&lt;MyParentClass&gt;&gt;(){});
          factoryMap.addBinding("myKey1").to(FactoryImpl1.class);
          factoryMap.addBinding("myKey2").to(FactoryImpl2.class);
      }
  }
  </code></pre>
  
  <p>The syntax in my module is not correct and I don'know how to configure this.</p>
  
  <p>In fact I would like to have a factory for each possible  in my factory interface</p>
  
  <p>Thanks in advance for your help.</p>