Class AnnotationReflectionUtils

java.lang.Object
io.micronaut.context.AnnotationReflectionUtils

@Internal public final class AnnotationReflectionUtils extends Object
The annotation reflection utils.
Since:
4.6.0
Author:
Denis Stepanov
  • 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 interface
      rawSuperType - The implementedType type - interface or an abstract class
      Returns:
      The argument of the interface with types and annotations
      Since:
      4.6