title: Can spring @Autowired Map?
body: <p>Here's the Map</p>
  
  <pre><code>@Autowired
  private Map&lt;String, ISendableConverter&gt; converters;
  </code></pre>
  
  <p>and <code>ISendableConverter</code></p>
  
  <pre><code>public interface ISendableConverter {
  
      ISendableMsg convert(BaseMessage baseMessage);
  
      String getType();
  }
  </code></pre>
  
  <p>There are some classes that implements <code>ISendableConverter</code></p>
  
  <p>I want to inject them into the variable <code>converters</code> by using spring <code>@Autowried</code> annotation.</p>
  
  <p>The instance of class as value, and the result of method <code>getType()</code> as key.</p>
  
  <p>like this one</p>
  
  <pre><code>@Component
  public class SendableVoiceMsgConverter implements ISendableConverter {
  
      @Override
      public ISendableMsg convert(BaseMessage baseMessage) {
          // TODO Auto-generated method stub
          return null;
      }
  
      @Override
      public String getType() {
          return "VOICE";
      }
  }
  </code></pre>
  
  <p>Is this possible? and how?</p>