Simple Spring Property Substitution
<p>So I have a spring configuration file:</p>

<pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"&gt;

    &lt;bean id="DisputeId" class="com.mycompany.validation.Attributes"&gt;
        &lt;property name="validator" value="com.mycompany.validation.StringValidator" /&gt;
        &lt;property name="maxLen" value="21" /&gt;
        &lt;property name="nullable" value="false" /&gt;
    &lt;/bean&gt;
</code></pre>

<p>I simply want to replace "com.mycompany.validation.Attributes" with something along the lines of "${attributes.class}".</p>

<p>How can I do this?  I don't need to define ${attributes.class} in a different file, would prefer it to be in this same xml file.  I know I'm just not searching for the correct terms...</p>

<p>Thanks!</p>