Class EachBeanQualifier<T>

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

@Internal public final class EachBeanQualifier<T> extends FilteringQualifier<T>
Qualifies the origin bean definition that was used to create an each bean.
Since:
4.6
Author:
Denis Stepanov
  • Constructor Details

    • EachBeanQualifier

      public EachBeanQualifier(BeanDefinition<?> beanDefinition)
  • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

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

      public int hashCode()
      Overrides:
      hashCode in class Object