title: Singleton bean inside prototype bean is null
body: <p>I'm trying to autowire a singleton bean inside a prototype bean like so:</p>
  
  <pre><code>@Component
  @Scope("singleton")
  class ComponentX {
  }
  </code></pre>
  
  <p>and  </p>
  
  <pre><code>@Component
  @Scope("prototype")
  class ComponentY {
    @Autowired
    private ComponentX x;
  }
  </code></pre>
  
  <p>but I'm getting null where I need to use x inside ComponentY.</p>
  
  <p>I understand the problem of having things the other way around, but I can't see why in my case it wouldn't let me.</p>
  
  <p>Any idea how to get over this?</p>
  
  <p>Thanks in advance,</p>