title: @Autowired and TransactionProxyFactoryBean?
body: <p>I have a repository class that is created in XML like so:</p>
  
  <pre><code>&lt;bean id="stuffRepositoryTarget" class="my.stuff.RepositoryImpl"&gt;
   &lt;!-- some params --&gt;
  &lt;/bean&gt;
  
  &lt;bean id="stuffRepository" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" primary="true"&gt;
    &lt;property name="target" ref="stuffRepositoryTarget" /&gt;
    &lt;property name="transactionAttributes"&gt;
       &lt;prop key="*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
    &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>And then I have a class that uses the repository like this:</p>
  
  <pre><code>@Autowired Repository repository;
  </code></pre>
  
  <p>It appears that the @Autowired annotation is referring to my Impl object and not my transaction interceptor.  What am I doing wrong?</p>