Package io.micronaut.inject.qualifiers
Class FilteringQualifier<T>
java.lang.Object
io.micronaut.inject.qualifiers.FilteringQualifier<T>
- Type Parameters:
T
- The qualifier type
- All Implemented Interfaces:
Qualifier<T>
- Direct Known Subclasses:
AnyQualifier
,EachBeanQualifier
,InterceptorBindingQualifier
,PrimaryQualifier
,TypeAnnotationQualifier
,TypeArgumentQualifier
A variation of
Qualifier
that is a simple filter.- Since:
- 4.2.0
- Author:
- Denis Stepanov
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doesQualify
(Class<T> beanType, Collection<? extends BeanType<T>> candidates) Check if at least one candidate qualifies.<BT extends BeanType<T>>
Collection<BT>filter
(Class<T> beanType, Collection<BT> candidates) Filter the candidates.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, doesQualify, qualify
-
Constructor Details
-
FilteringQualifier
public FilteringQualifier()
-
-
Method Details
-
reduce
-
doesQualify
Description copied from interface:Qualifier
Check if at least one candidate qualifies.- Specified by:
doesQualify
in interfaceQualifier<T>
- Parameters:
beanType
- The bean typecandidates
- The candidates- Returns:
- true if qualifies
-
filter
Description copied from interface:Qualifier
Filter the candidates.
-