Package io.micronaut.inject.qualifiers
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>
A qualifier to look up a primary bean.
- Since:
- 3.5.0
- Author:
- Denis Stepanov
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doesQualify
(Class<T> beanType, BeanType<T> candidate) Check if the candidate qualifies.static <T1> PrimaryQualifier<T1>
instance()
Generified way to get the primary instance.toString()
Methods inherited from class io.micronaut.inject.qualifiers.FilteringQualifier
doesQualify, filter, reduce
-
Field Details
-
INSTANCE
-
-
Method Details
-
doesQualify
Description copied from interface:Qualifier
Check if the candidate qualifies.- Parameters:
beanType
- The bean typecandidate
- The candidate- Returns:
- true if matches
-
toString
-
instance
Generified way to get the primary instance.- Type Parameters:
T1
- The generic type- Returns:
- The instance
- Since:
- 3.6.0
-