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.
The annotation reflection utils.
- Since:
- 4.6.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @Nullable Argument<T> resolveGenericToArgument(Class<?> runtimeGenericType, Class<T> rawSuperType) Deprecated, for removal: This API element is subject to removal in a future version.Useio.micronaut.reflection.ReflectionArguments#resolveGenericToArgument(Class, Class), which takes the same arguments and answers the same.
-
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.Useio.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 interfacerawSuperType- The implementedType type - interface or an abstract class- Returns:
- The argument of the interface with types and annotations
- Since:
- 4.6
-
io.micronaut.reflection.ReflectionArgumentsof themicronaut-reflectionmodule instead. It carries this resolution and the rest of the conversion fromjava.lang.reflectto 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.