@Order public class AnnotationMethodContainerPostProcessor extends MethodContainerAnnotationProcessor implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.DisposableBean
Post process the bean, scan the method with
ContainerMethod annotation in the class or method of class,
and adapt it to Container instance
according to MethodContainerFactory registered in the Spring context.
ContainerMethod,
MethodContainerFactory,
Crane4jGlobalConfigurationannotationFinder, methodContainerFactories, nonAnnotatedClasses| 构造器和说明 |
|---|
AnnotationMethodContainerPostProcessor(AnnotationFinder annotationFinder,
Collection<MethodContainerFactory> factories,
Crane4jGlobalConfiguration configuration)
Create an
AnnotationMethodContainerPostProcessor instance. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Clear resources when destroying beans
|
Object |
postProcessAfterInitialization(Object bean,
String beanName)
Scan and process the method with the specified annotation in the class.
|
Object |
postProcessBeforeInitialization(Object bean,
String beanName)
Do nothing.
|
checkMethodMatch, collectClassLevelAnnotatedMethods, collectMethodLevelAnnotatedMethods, process, processAnnotatedMethodpublic AnnotationMethodContainerPostProcessor(AnnotationFinder annotationFinder, Collection<MethodContainerFactory> factories, Crane4jGlobalConfiguration configuration)
AnnotationMethodContainerPostProcessor instance.annotationFinder - annotation finderfactories - factoriesconfiguration - configurationpublic void destroy()
destroy 在接口中 org.springframework.beans.factory.DisposableBeanpublic Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization 在接口中 org.springframework.beans.factory.config.BeanPostProcessorbean - beanbeanName - beanNameorg.springframework.beans.BeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
Scan and process the method with the specified annotation in the class. If the annotation also exists in the class, find and process the corresponding method in the class.
postProcessAfterInitialization 在接口中 org.springframework.beans.factory.config.BeanPostProcessorbean - beanbeanName - beanNameorg.springframework.beans.BeansExceptionCopyright © 2023. All rights reserved.