public class SynthesizedAnnotationProxy extends Object implements InvocationHandler
SynthesizedAnnotation
生成对应的合成注解代理对象SynthesizedAnnotation
,
AnnotationAttributeValueProvider
Modifier and Type | Method and Description |
---|---|
static <T extends Annotation> |
create(Class<T> annotationType,
AnnotationAttributeValueProvider annotationAttributeValueProvider,
SynthesizedAnnotation annotation)
创建一个代理注解,生成的代理对象将是
SyntheticProxyAnnotation 与指定的注解类的子类。 |
static <T extends Annotation> |
create(Class<T> annotationType,
SynthesizedAnnotation annotation)
创建一个代理注解,生成的代理对象将是
SyntheticProxyAnnotation 与指定的注解类的子类。 |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
static boolean |
isProxyAnnotation(Class<?> annotationType)
该类是否为通过
SynthesizedAnnotationProxy 生成的代理类 |
public static <T extends Annotation> T create(Class<T> annotationType, AnnotationAttributeValueProvider annotationAttributeValueProvider, SynthesizedAnnotation annotation)
SyntheticProxyAnnotation
与指定的注解类的子类。T
- 注解类型annotationType
- 注解类型annotationAttributeValueProvider
- 注解属性值获取器annotation
- 合成注解public static <T extends Annotation> T create(Class<T> annotationType, SynthesizedAnnotation annotation)
SyntheticProxyAnnotation
与指定的注解类的子类。T
- 注解类型annotationType
- 注解类型annotation
- 合成注解public static boolean isProxyAnnotation(Class<?> annotationType)
SynthesizedAnnotationProxy
生成的代理类annotationType
- 注解类型Copyright © 2024. All rights reserved.