public interface AnnotationParserCallback
CommonAnnotationBeanPostProcessor| 限定符和类型 | 方法和说明 |
|---|---|
Object |
annotationAtField(Annotation t,
Object value,
String beanName,
org.springframework.beans.PropertyValues pvs,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
Field field)
process all annotation on class field.
|
Object |
annotationAtMethod(Annotation t,
Object bean,
String beanName,
org.springframework.beans.PropertyValues pvs,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
Method method)
process all annotation on class method.
|
Object |
annotationAtType(Annotation t,
Object bean,
String beanName,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
process all annotation on class type.
|
void |
annotationAtTypeAfterStarted(Annotation t,
Object bean,
String beanName,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
process all annotation on class type after spring containter started.
|
void |
destroy()
do destroy action on spring container close.
|
List<Class<? extends Annotation>> |
getMethodFieldAnnotation()
Gets the method field annotation.
|
Class<? extends Annotation> |
getTypeAnnotation()
Gets the type annotation.
|
void |
setPlaceholderResolver(PlaceholderResolver resolver)
Sets the placeholder resolver.
|
Object annotationAtType(Annotation t, Object bean, String beanName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
t - annotation instance.bean - target beanbeanName - target bean namebeanFactory - spring bean factoryorg.springframework.beans.BeansException - exceptions on spring beans create error.void annotationAtTypeAfterStarted(Annotation t, Object bean, String beanName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
t - annotation instance.bean - target beanbeanName - target bean namebeanFactory - spring bean factoryorg.springframework.beans.BeansException - exceptions on spring beans create error.Object annotationAtField(Annotation t, Object value, String beanName, org.springframework.beans.PropertyValues pvs, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Field field) throws org.springframework.beans.BeansException
t - annotation instance.value - field value of target targetbeanName - target bean namepvs - bean property valuesbeanFactory - spring bean factoryfield - field instanceorg.springframework.beans.BeansException - exceptions on spring beans create error.Object annotationAtMethod(Annotation t, Object bean, String beanName, org.springframework.beans.PropertyValues pvs, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Method method) throws org.springframework.beans.BeansException
t - annotation instance.bean - target beanbeanName - target bean namepvs - bean property valuesbeanFactory - spring bean factorymethod - method instanceorg.springframework.beans.BeansException - exceptions on spring beans create error.Class<? extends Annotation> getTypeAnnotation()
List<Class<? extends Annotation>> getMethodFieldAnnotation()
void destroy()
throws Exception
Exception - throw any exceptionvoid setPlaceholderResolver(PlaceholderResolver resolver)
resolver - the new placeholder resolverCopyright © 2022 Baidu, Inc.. All rights reserved.