title: Inject spring dependency in abstract super class
body: <p>I have requirement to inject dependency in abstract superclass using spring framework.</p>
  
  <pre><code>class A extends AbstractClassB{ 
      private Xdao daox ;
      ...
      public setXdao() { ... }
  }
  
  class AbstractClassB{
      ..
      private yDao  daoy;
      public seyYdao() { ... }
  }
  </code></pre>
  
  <p>I need to pass superclass dependency everytime i instantiate Abstract class B (which can be subclassed in 100's of ways in my project)</p>
  
  <p>entry in application.xml  (spring context file)</p>
  
  <pre><code>&lt;bean id="aClass" class="com.mypro.A" 
      &lt;property name="daox" ref="SomeXDaoClassRef" /&gt; 
      &lt;property name="daoy" ref="SomeYDaoClassRef"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>How can i just create bean reference of super class AbstractClassB in application.xml  so that i can use it in all subclass bean creation?</p>