T
- 注解类型public final class AnnotationMappingProxy<T extends Annotation> extends Object implements InvocationHandler
AnnotationMapping
生成代理对象,当从该代理对象上获取属性值时,
总是通过AnnotationMapping.getResolvedAttributeValue(String, Class)
获取。AnnotationMapping
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
create(Class<? extends A> annotationType,
AnnotationMapping<A> mapping)
创建一个代理对象
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
调用被代理的方法
|
static boolean |
isProxied(Annotation annotation)
当前注解是否由当前代理类生成
|
public static <A extends Annotation> A create(Class<? extends A> annotationType, AnnotationMapping<A> mapping)
A
- 注解类型annotationType
- 注解类型mapping
- 注解映射对象public static boolean isProxied(Annotation annotation)
annotation
- 注解对象Copyright © 2025. All rights reserved.