Class AnnotationProxy<T extends Annotation>
java.lang.Object
org.miaixz.bus.core.annotation.resolve.AnnotationProxy<T>
- Type Parameters:
T- 注解类型
- All Implemented Interfaces:
Serializable,Annotation,InvocationHandler
public class AnnotationProxy<T extends Annotation>
extends Object
implements Annotation, InvocationHandler, Serializable
注解代理
通过代理指定注解,可以自定义调用注解的方法逻辑,如支持
Alias 注解- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Constructor Details
-
AnnotationProxy
构造- Parameters:
annotation- 注解
-
-
Method Details
-
annotationType
- Specified by:
annotationTypein interfaceAnnotation
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-