title: Custom @Qualifier with Spring autoconfig
body: <p>I'm not sure how to use custom qualifier interface with component scanning and autowire in Spring. I have an interface:</p>
  
  <pre><code>@Target({ElementType.FIELD,ElementType.PARAMETER,ElementType.METHOD})
  @Retention(RetentionPolicy.RUNTIME)
  @Qualifier
  public @interface BigBean {
  }
  </code></pre>
  
  <p>a bean I want to injected to:</p>
  
  <pre><code>@Component
  public class Bean {
  
     @Autowired
     @BigBean("A")
     private SomeBean sb;
  
     public SomeBean getSb() {
         return sb;
     }
     public void setSb(SomeBean sb) {
         this.sb = sb;
     }
  }
  </code></pre>
  
  <p>and beans of the same type to be distinguished by custom qualifier:</p>
  
  <pre><code>@Component
  @BigBean("A") //&lt;-????
  public class SmallBeanA implements SomeBean{
  }
  
  @Component
  public class SmallBeanB implements SomeBean{
  }
  </code></pre>
  
  <p>What I found in <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#beans-scanning-qualifiers" rel="nofollow">spring documentation</a> doesn't compile in my case. How to use this custom qualifier I have?</p>