title: Is there a way to bind a couple of instances to many different keys in Guice?
body: <p>We need to create some mapping between many types of some object, described with enum values:</p>
  
  <pre><code>public enum ObjectType {
  Type1,Type2,Type3,Type4,Type5...TypeN
  }
  </code></pre>
  
  <p>... and </p>
  
  <ol>
  <li>several instances of strategies to use for these types</li>
  <li>or, for example, boolean values which relate to the mentioned ObjectTypes</li>
  </ol>
  
  <p>A MapBinder from Guice can be used for this purpose, along with a standart HashMap, as well as some complex map from google collections.</p>
  
  <p>What I want is to find something that suits that "low-density" structure of the "values" of this match. I would like to see something like</p>
  
  <pre><code>binder.addBinding(ObjectType.Type1,ObjectType.Type2...ObjectType.Type6).toInstance(Boolean.TRUE)
  or
  binder.addBinding(ObjectType.Type1,ObjectType.Type2...ObjectType.Type6).toInstance(new SomeStrategyForFirstSixObjectType())
  </code></pre>
  
  <p>Any advice?</p>