Annotation Type NonDefault


  • @Target({TYPE,PACKAGE,PARAMETER})
    @Retention(RUNTIME)
    @Documented
    @Qualifier
    public @interface NonDefault
    Prevents the class from being injected at unqualified injection points.

    Use this if the bean has to implement a certain interface but should not be injected at corresponding injection points.