title: How to specify in Spring XML configuration file class for a Map property?
body: <p>Here is what I mean, see following spring XML file:</p>
  
  <pre><code>&lt;bean id = 'a' class="A"&gt;
     &lt;property name="mapProperty"&gt;
         &lt;map&gt;
            &lt;entry key="key1"&gt;&lt;value&gt;value1&lt;/value&gt;&lt;/entry&gt;
         &lt;/map&gt;
     &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>And my class looks like following:</p>
  
  <pre><code>class A {
     HashMap mapProperty
  
  }
  </code></pre>
  
  <p>How can I tell in spring XML file that Map to be injected is of type java.util.HashMap ? Or in general can I provide class name for the Map ?</p>
  
  <p>Please note, I cannot change the <code>class A</code> to use <code>Map</code> instead of <code>HashMap</code></p>
  
  <p>Thanks in advance !!</p>