Annotation Interface Primary


@Qualifier @Documented @Retention(RUNTIME) public @interface Primary

A Qualifier that indicates that this bean is the primary bean that should be selected in the case of multiple possible interface implementations.

Note that if multiple primary beans are found then a NonUniqueBeanException can still occur.

Author:
Graeme Rocher
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Qualified name.
    static final String
    The simple name of this annotation.
  • Field Details

    • NAME

      static final String NAME
      Qualified name.
      Since:
      3.5.1
    • SIMPLE_NAME

      static final String SIMPLE_NAME
      The simple name of this annotation.