Class PrimaryQualifier<T>

java.lang.Object
io.micronaut.inject.qualifiers.FilteringQualifier<T>
io.micronaut.inject.qualifiers.PrimaryQualifier<T>
Type Parameters:
T - The generic type
All Implemented Interfaces:
Qualifier<T>

@Internal public final class PrimaryQualifier<T> extends FilteringQualifier<T>
A qualifier to look up a primary bean.
Since:
3.5.0
Author:
Denis Stepanov
  • Field Details

  • Method Details

    • doesQualify

      public boolean doesQualify(Class<T> beanType, BeanType<T> candidate)
      Description copied from interface: Qualifier
      Check if the candidate qualifies.
      Parameters:
      beanType - The bean type
      candidate - The candidate
      Returns:
      true if matches
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • instance

      public static <T1> PrimaryQualifier<T1> instance()
      Generified way to get the primary instance.
      Type Parameters:
      T1 - The generic type
      Returns:
      The instance
      Since:
      3.6.0