T - 解析注解的目标类型public class ConfigOptionAnnotationProcessor<T extends AnnotatedElement> extends Object
ConfigOption解析器,用于快速搭建带缓存功能的注解处理器MethodResultProcessAspect| 构造器和说明 |
|---|
ConfigOptionAnnotationProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
getNamespace(OperateConfigurationParser parser)
获取指定namespace
|
protected Class<?> |
getTargetClass(ConfigOption annotation,
T annotatedElement,
Object target)
获取配置对象类型
|
protected ConfigOption |
parseAnnotation(AnnotatedElement annotatedElement)
获取
ConfigOption注解 |
void |
process(T annotatedElement,
Object target) |
protected String getNamespace(OperateConfigurationParser parser)
parser - 解析器protected ConfigOption parseAnnotation(AnnotatedElement annotatedElement)
ConfigOption注解annotatedElement - 注解元素protected Class<?> getTargetClass(ConfigOption annotation, T annotatedElement, Object target)
annotation - 注解annotatedElement - 注解元素target - 待处理对象Void时则跳过本次操作Copyright © 2022. All rights reserved.