title: dependency injection not behaving in spring
body: <p>Simply I have 2 classes. Questions.java and Answers.java
  I am just trying to inject answers object into Questions.
  This is my beans.xml file</p>
  
  <pre><code>&lt;bean id="questions" class="main.Questions"&gt;
      &lt;constructor-arg value="0000"&gt;&lt;/constructor-arg&gt;
      &lt;constructor-arg value="What is the question?"&gt;&lt;/constructor-arg&gt;
      &lt;constructor-arg value="threading"&gt;&lt;/constructor-arg&gt;
      &lt;property name="correctAnswer" value="deadlock"&gt;&lt;/property&gt;
      &lt;property name="answers" ref="answers"&gt;&lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="answers" class="main.Answers"&gt;
  &lt;constructor-arg value="0000"&gt;&lt;/constructor-arg&gt;
  &lt;constructor-arg value="LiveLock"&gt;&lt;/constructor-arg&gt;
  
  &lt;/bean&gt;
  </code></pre>
  
  <p></p>
  
  <p>When i output to the console in netbeans i just get this line</p>
  
  <pre><code>Question [questionId=0, question=What is the question?, category=threading, correctAnswer=deadlock]
  </code></pre>
  
  <p>when surely i should get answers=answers injected into it.
  literally have no idea why this wont work.</p>