当前位置:网站首页>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@Configuration
Configuration class
2、 analysis@ComponentScan
Scanned bag
3、 analysis@ComponentScans
Scanned bag
4、 analysis@Import
annotationPlaceholderConfigurerSupport
For parsing bean In the attribute value in the definitionPlace holder
DeprecatedBeanWarner
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 inApplicationListenerDetector
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
、@EJB
Three annotationsAutowiredAnnotationBeanPostProcessor
complete bean in@Autowired
,@Inject
,@Value
Annotation 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()
边栏推荐
- Etcd database source code analysis - initialization overview
- 总线的基本概念
- Supplement the JS of a video website to decrypt the video
- SQL injection - injection based on MSSQL (SQL Server)
- Actual cases and optimization solutions of cloud native architecture
- ansys命令
- Descriptive analysis of data distribution characteristics (data exploration)
- [matlab] matlab simulation modulation system FM system
- 数据标注是一块肥肉,盯上这块肉的不止中国丨曼孚科技
- Simulink与Arduino串口通信
猜你喜欢
小程序毕业设计---美食、菜谱小程序
Just do it with your hands 7 - * project construction details 2 - hook configuration
Ping port artifact psping
Analysis of classical pointer and array written test questions in C language
一键过滤选择百度网盘文件
RSA加密应用常见缺陷的原理与实践
Actual cases and optimization solutions of cloud native architecture
(4) Canal multi instance use
What are the reasons for the frequent high CPU of ECS?
KMP匹配字符串
随机推荐
Solar insect killing system based on single chip microcomputer
空洞卷积、可变形卷积、可变形ROI Pooling
1480. Dynamic sum of one-dimensional array
Unity2D--人物移动并转身
How to use postman to realize simple interface Association [add, delete, modify and query]
如何使用postman实现简单的接口关联【增删改查】
VB.net 调用FFmpeg简单处理视频(类库——6)
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
Introduction To AMBA 简单理解
[matlab] communication signal modulation general function interpolation function
Introduction to AMBA
【QT】制作MyComboBox点击事件
left_and_right_net正常版本
Leetcode 184 Employees with the highest wages in the Department (July 3, 2022)
Use of hutool Pinyin tool
模拟小根堆
[matlab] matlab simulation modulation system FM system
KMP匹配字符串
Unity is connected to the weather system
Canoe panel learning video