Package io.micronaut.inject.qualifiers
Class ClosestTypeArgumentQualifier<T>
java.lang.Object
io.micronaut.inject.qualifiers.TypeArgumentQualifier<T>
io.micronaut.inject.qualifiers.ClosestTypeArgumentQualifier<T>
- Type Parameters:
T
- The type
- All Implemented Interfaces:
Qualifier<T>
A
Qualifier
that qualifies beans by generic type arguments and only
returns the candidates that most closely match.- Since:
- 1.1.1
- Author:
- James Kleeh
-
Field Summary
-
Method Summary
Methods inherited from class io.micronaut.inject.qualifiers.TypeArgumentQualifier
areTypesCompatible, areTypesCompatible, equals, getTypeArguments, getTypeArguments, hashCode, toString
-
Method Details
-
reduce
-
compare
- Parameters:
classesToCompare
- An array of classes- Returns:
- Whether the types are compatible
-