Class MatchArgumentQualifier<T>

java.lang.Object
io.micronaut.serde.support.util.MatchArgumentQualifier<T>
Type Parameters:
T - The type
All Implemented Interfaces:
io.micronaut.context.Qualifier<T>

@Internal public final class MatchArgumentQualifier<T> extends Object implements io.micronaut.context.Qualifier<T>
A Qualifier that filters beans according to the type arguments.
Author:
Denis Stepanov
  • Method Details

    • ofArgument

      public static <T> MatchArgumentQualifier<T> ofArgument(io.micronaut.core.type.Argument<?> argument)
    • ofSuperVariable

      public static <T> MatchArgumentQualifier<T> ofSuperVariable(Class<T> beanType, io.micronaut.core.type.Argument<?> argument)
    • ofExtendsVariable

      public static <T> MatchArgumentQualifier<T> ofExtendsVariable(Class<T> beanType, io.micronaut.core.type.Argument<?> argument)
    • reduce

      public <BT extends io.micronaut.inject.BeanType<T>> Stream<BT> reduce(Class<T> beanType, Stream<BT> candidates)
      Specified by:
      reduce in interface io.micronaut.context.Qualifier<T>
    • doesQualify

      public boolean doesQualify(Class<T> beanType, Collection<? extends io.micronaut.inject.BeanType<T>> candidates)
      Specified by:
      doesQualify in interface io.micronaut.context.Qualifier<T>
    • doesQualify

      public boolean doesQualify(Class<T> beanType, io.micronaut.inject.BeanType<T> candidate)
      Specified by:
      doesQualify in interface io.micronaut.context.Qualifier<T>
    • filter

      public <BT extends io.micronaut.inject.BeanType<T>> Collection<BT> filter(Class<T> beanType, Collection<BT> candidates)
      Specified by:
      filter in interface io.micronaut.context.Qualifier<T>