title: Populating a spring bean using a constructor-arg field
body: <p>How can i inject a properties file containing a Map to be used as additional constructor arg using the  field.</p>
  
  <p>With a Map being loaded from a properties file</p>
  
  <p>the bean is currently setup using:</p>
  
  <pre><code>&lt;bean id="graphDbService" class="org.neo4j.kernel.EmbeddedGraphDatabase"
       init-method="enableRemoteShell" destroy-method="shutdown"&gt;
  
       &lt;constructor-arg index="0" value= "data/neo4j-db"/&gt;
           &lt;constructor-arg index="1" value=?  /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p><em>Java Equivalent:</em></p>
  
  <pre><code>Map&lt;String,String&gt; configuration =  EmbeddedGraphDatabase.loadConfigurations( "neo4j_config.props" );
  GraphDatabaseService graphDb = new EmbeddedGraphDatabase( "data/neo4j-db", configuration );
  </code></pre>
  
  <p>Thanks</p>