Package io.micronaut.context
Class AnnotationReflectionUtils
java.lang.Object
io.micronaut.context.AnnotationReflectionUtils
The annotation reflection utils.
- Since:
- 4.6.0
- Author:
- Denis Stepanov
-
Method Summary
-
Method Details
-
resolveGenericToArgument
@Nullable public static <T> @Nullable Argument<T> resolveGenericToArgument(@NonNull @NonNull Class<?> runtimeGenericType, @NonNull @NonNull Class<T> rawSuperType) Find implementation as an argument with types and annotations.- Parameters:
runtimeGenericType
- The implementation class of the interfacerawSuperType
- The implementedType type - interface or an abstract class- Returns:
- The argument of the interface with types and annotations
- Since:
- 4.6
-