Package org.qiunet.utils.reflect
Class RuntimeAnnotations
java.lang.Object
org.qiunet.utils.reflect.RuntimeAnnotations
运行时注解添加. 一般情况少用.
需要添加: --add-opens java.base/java.lang=ALL-UNNAMED
- Author:
- qiunet 2022/4/19 15:00
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Annotation>
voidputAnnotation(Class<?> c, Class<T> annotationClass, T annotation)
-
Constructor Details
-
RuntimeAnnotations
public RuntimeAnnotations()
-
-
Method Details
-
putAnnotation
public static <T extends Annotation> void putAnnotation(Class<?> c, Class<T> annotationClass, T annotation)
-