title: Spring autowried in Abstract class construtor
body: <p>I have a scenario where autowired is null when called in the constructor of an abstract class like this : </p>
  
  <pre><code>public abstract class AbstractClass{
     @Autowired 
     @Qualifier("proId")
     protected Prop prop;
  
       public AbstractClass(){ 
           prop.getName(); 
  </code></pre>
  
  <p>The above throws NullException on deployment. </p>
  
  <p>But the following works when the autowired property called after instantiating      </p>
  
  <pre><code>public abstract class AbstractClass{
     @Autowired 
     @Qualifier("proId")
     protected Prop prop;
  
       public void Init(){ 
           prop.getName(); 
         }
   }
  
  
  public class DefaultClass extends AbstractClass(){ 
          ...
  
  @autowired
  DefaultClass dc ;
  ...
  
  dc.Init(); 
  </code></pre>
  
  <p>How can I get the first case to work ? </p>