Set the property based on condition in spring xml?
<p>I want to include the file under spring.xml based on condition like</p>

<pre><code>&lt;bean id="ehcache" class="com.MyCustomBean" scope="singleton"&gt;
        if({environment==dev})
           &lt;property name="fileLoc" value="file_dev.xml" /&gt;
         else
           &lt;property name="fileLoc" value="file_prod.xml" /&gt;

    &lt;/bean&gt;
</code></pre>

<p>where <code>environment</code> is property defined under property file.</p>

<p>For information, I am already using spring <code>PropertySourcesPlaceholderConfigurer</code> to   resolves <code>${...}</code> placeholders within bean definition property values .</p>