Package io.micronaut.serde.support.util
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
-
Field Summary
Fields inherited from interface io.micronaut.context.Qualifier
PRIMARY
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doesQualify
(Class<T> beanType, io.micronaut.inject.BeanType<T> candidate) boolean
doesQualify
(Class<T> beanType, Collection<? extends io.micronaut.inject.BeanType<T>> candidates) <BT extends io.micronaut.inject.BeanType<T>>
Collection<BT>filter
(Class<T> beanType, Collection<BT> candidates) static <T> MatchArgumentQualifier<T>
ofArgument
(io.micronaut.core.type.Argument<?> argument) static <T> MatchArgumentQualifier<T>
ofExtendsVariable
(Class<T> beanType, io.micronaut.core.type.Argument<?> argument) static <T> MatchArgumentQualifier<T>
ofSuperVariable
(Class<T> beanType, io.micronaut.core.type.Argument<?> argument) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.context.Qualifier
contains, qualify
-
Method Details
-
ofArgument
-
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 interfaceio.micronaut.context.Qualifier<T>
-
doesQualify
public boolean doesQualify(Class<T> beanType, Collection<? extends io.micronaut.inject.BeanType<T>> candidates) - Specified by:
doesQualify
in interfaceio.micronaut.context.Qualifier<T>
-
doesQualify
- Specified by:
doesQualify
in interfaceio.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 interfaceio.micronaut.context.Qualifier<T>
-