title: Spring IOC nested bean in template override property value
body: <p>i have a <code>template bean</code> which have a nested <code>bean</code>. The nested bean have 2 important properties the one which is valid for the others 3 beans definitions but they have a secong property which change in each bean.</p>
  
  <p>my template looks like this. a bean with no class.</p>
  
  <pre><code>&lt;bean id="myBeanTemplate" abstract="true" scope="prototype"&gt;
      &lt;property name="school"&gt;        
          &lt;bean class="com.model.School" scope="prototype"&gt;
              &lt;property name="status" value="true"/&gt;&lt;!--is all the same for all the child beans..-&gt;
              /*address=?? the property which is change across the children beans.. the property to  be set*/
          &lt;/bean&gt;
      &lt;/property&gt;
   &lt;/bean&gt;    
  </code></pre>
  
  <p>here i dont set the <code>addres</code> property just because they vary in the following bean declaration all i wanna do is has the bean template above and <code>override the address property only</code>. just like this.</p>
  
  <pre><code>&lt;bean id="myBeanForStudentsInSchool13" class="com.model.Students" parent="myBeanTemplate" scope="prototype"&gt;    
         here i want to set the address property to a value   
  &lt;/bean&gt;
  
  &lt;bean id="myBeanForStudentsInSchool23" class="com.model.Students" parent="myBeanTemplate" scope="prototype"&gt;    
         here i want to set the address property a different value    
  &lt;/bean&gt;
  </code></pre>
  
  <p>but like is a nested bean i dont know how to reference it...</p>
  
  <p><em>UPDATE</em></p>
  
  <p>i am allowed use just declarative configuration...</p>
  
  <p>thanks a lot..</p>