Class AnnotationReflectionUtils

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

@Internal @Deprecated(since="5.2", forRemoval=true) public final class AnnotationReflectionUtils extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use io.micronaut.reflection.ReflectionArguments of the micronaut-reflection module instead. It carries this resolution and the rest of the conversion from java.lang.reflect to the metadata the annotation processors generate, so that the two do not drift apart; it also resolves a type variable inside its own bound, which this class recurses on.
The annotation reflection utils.
Since:
4.6.0
Author:
Denis Stepanov
  • Method Details

    • resolveGenericToArgument

      @Deprecated(since="5.2", forRemoval=true) public static <T> @Nullable Argument<T> resolveGenericToArgument(Class<?> runtimeGenericType, Class<T> rawSuperType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use io.micronaut.reflection.ReflectionArguments#resolveGenericToArgument(Class, Class), which takes the same arguments and answers the same.
      Find implementation as an argument with types and annotations.
      Type Parameters:
      T - T
      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