当前位置:网站首页>Overview of relevant subclasses of beanfactorypostprocessor and beanpostprocessor
Overview of relevant subclasses of beanfactorypostprocessor and beanpostprocessor
2022-07-04 05:37:00 【Xiao Liu said】
List of articles
BeanFactoryPostProcessor
Mainly used for processing BeanFactory and BeanDefinition
Subclass overview
Class diagram 
BeanDefinitionRegistryPostProcessor
The main operation objects are BeanDefinitionConfigurableListableBeanFactory
1、 Analysis added@ConfigurationConfiguration class
2、 analysis@ComponentScanScanned bag
3、 analysis@ComponentScansScanned bag
4、 analysis@ImportannotationPlaceholderConfigurerSupport
For parsing bean In the attribute value in the definitionPlace holderDeprecatedBeanWarner
Detect abandoned bean object , And record the user specified bean typeCustomScopeConfigurer
Configurator of custom scopeEventListenerMethodProcessor
1、 analysis@EventListener, Get the intercept method
2、 Transform the interception method , become ApplicationListener
3、 Will be transformed ApplicationListener Put it in Spring In the containerCustomAutowireConfigurer
Allows easy registration of customizations autowire Qualifier typeCustomEditorConfigurer
This class is used to easily register a user-defined Attribute Editor
BeanPostProcessor
Call after instantiation attribute injection or initialization is completed 
Subclass overview
Class diagram 
ApplicationContextAwareProcessor
To some realize Aware The interface of bean Set up ApplicationContext Corresponding properties in
ApplicationListenerDetector
This class is used to detect bean Is it implemented ApplicationListener Interface , Two functions :
1、 After instantiation , If bean Of and belonging to ApplicationListener Interface , Then add to the multicast
2、bean Before destruction , If bean It's a applicationListener , Delete in advance from the multicastCommonAnnotationBeanPostProcessor
Responsible for parsing@Resource、@WebServiceRef、@EJBThree annotationsAutowiredAnnotationBeanPostProcessor
complete bean in@Autowired,@Inject,@ValueAnnotation parsing and injection functionAbstractAutoProxyCreator
ProxyProcessorSupport An important subclass of .SpringAOP The core class in .
Realized SmartInstantiationAwareBeanPostProcessor、BeanFactoryAware Interface .
Automatically create classes for proxy objects . We are using AOP Basically, we use this class to process Bean Interception of , Create proxy object .AbstractAdvisorAutoProxyCreator
AbstractAutoProxyCreator Subclasses of .SpringAOP The core class in . Used to create Advisor And proxy objects .AspectJAwareAdvisorAutoProxyCreator
AbstractAdvisorAutoProxyCreator Subclasses of . Use AspectJ Syntax creation Advisor And proxy objects .
other
02 Spring Source code summary - invokeBeanFactoryPostProcessors()
04 Spring Source code summary - registerBeanPostProcessors()
边栏推荐
- Programmers don't talk about morality, and use multithreading for Heisi's girlfriend
- BUU-Crypto-[GXYCTF2019]CheckIn
- 【兴趣阅读】Adversarial Filtering Modeling on Long-term User Behavior Sequences for Click-Through Rate Pre
- fastjson
- [matlab] matlab simulates digital baseband transmission system eye diagram of bipolar baseband signal (cosine roll off forming pulse)
- ansys命令
- 企业级日志分析系统ELK(如果事与愿违那一定另有安排)
- Descriptive analysis of data distribution characteristics (data exploration)
- 拓扑排序和关键路径的图形化显示
- ping端口神器psping
猜你喜欢

How to configure static IP for Kali virtual machine

Penetration tool - sqlmap

2022 question bank and answers for safety management personnel of hazardous chemical business units
![[paper summary] zero shot semantic segmentation](/img/78/ee64118d86a7e43ec4d1cb97191fbe.jpg)
[paper summary] zero shot semantic segmentation
![BUU-Crypto-[HDCTF2019]basic rsa](/img/d0/8e451dabb2a6897f6680220d16d04d.jpg)
BUU-Crypto-[HDCTF2019]basic rsa

Just do it with your hands 7 - * project construction details 2 - hook configuration

1480. Dynamic sum of one-dimensional array

Just do it with your hands 7 - * project construction details 2 - hook configuration

2022 R2 mobile pressure vessel filling retraining question bank and answers

Introduction to AMBA
随机推荐
C # character similarity comparison general class
Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
基于单片机的太阳能杀虫系统
光模块字母含义及参数简称大全
Etcd database source code analysis - initialization overview
Flask
Topological sorting and graphical display of critical path
What are the reasons for the frequent high CPU of ECS?
KMP匹配字符串
Leetcode 184 Employees with the highest wages in the Department (July 3, 2022)
【QT】制作MyComboBox点击事件
XII Golang others
FreeRTOS 中 RISC-V-Qemu-virt_GCC 的 锁机制 分析
724. Find the central subscript of the array
C language simple student management system (including source code)
Descriptive analysis of data distribution characteristics (data exploration)
(4) Canal multi instance use
Simulated small root pile
补某视频网站的js,进行视频解密
LC weekly 300