@Order public class BeanMethodContainerRegistrar extends ContainerMethodAnnotationProcessor 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, nonAnnotatedClassesmethodContainerFactories| 构造器和说明 |
|---|
BeanMethodContainerRegistrar(Collection<MethodContainerFactory> factories,
AnnotationFinder annotationFinder,
Crane4jGlobalConfiguration configuration)
Create an
BeanMethodContainerRegistrar instance. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Clear resources when destroying beans
|
Object |
postProcessAfterInitialization(@NonNull Object bean,
@NonNull String beanName)
Scan and process the method with the specified annotation in the class.
|
Object |
postProcessBeforeInitialization(@NonNull Object bean,
@NonNull String beanName)
Do nothing.
|
collectClassLevelAnnotatedMethods, collectMethodLevelAnnotatedMethods, process, processAnnotatedMethod, resolveAnnotationsForClass, resolveAnnotationsForMethodcreateMethodContainer, findMatchedMethodForAnnotation, findMostMatchMethodpublic BeanMethodContainerRegistrar(Collection<MethodContainerFactory> factories, AnnotationFinder annotationFinder, Crane4jGlobalConfiguration configuration)
BeanMethodContainerRegistrar instance.factories - factoriesannotationFinder - annotation finderconfiguration - configurationpublic void destroy()
destroy 在接口中 org.springframework.beans.factory.DisposableBeanpublic Object postProcessBeforeInitialization(@NonNull Object bean, @NonNull String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization 在接口中 org.springframework.beans.factory.config.BeanPostProcessorbean - beanbeanName - beanNameorg.springframework.beans.BeansExceptionpublic Object postProcessAfterInitialization(@NonNull Object bean, @NonNull 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.