title: Get bean from ApplicationContext by qualifier
body: <p>Given this code:</p>
  
  <pre><code>public interface Service {}
  
  @Component
  @Qualifier("NotWanted")
  public class NotWantedService implements Service {}
  
  @Component
  @Qualifier("Wanted")
  public class WantedService implements Service {}
  
  AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
  ctx.register(NotWantedService.class);
  ctx.register(WantedService.class);
  ctx.refresh()
  </code></pre>
  
  <p>How do I now do:</p>
  
  <pre><code>ctx.getBean(Service.class)
  </code></pre>
  
  <p>in a way that will only get the one with <code>@Qualifier("Wanted")</code> and not the one with <code>@Qualifier("NotWanted")</code>? I'm specifically asking if it's possible to do it using <code>getBean</code>, not injecting to a class, then using that one as a kind of proxy.</p>