当前位置:网站首页>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()
边栏推荐
- [MySQL practice of massive data with high concurrency, high performance and high availability -8] - transaction isolation mechanism of InnoDB
- How to use postman to realize simple interface Association [add, delete, modify and query]
- [matlab] matlab simulates digital baseband transmission system eye diagram of bipolar baseband signal (class I part response waveform)
- Evolution of system architecture: differences and connections between SOA and microservice architecture
- Analysis of classical pointer and array written test questions in C language
- Build an Internet of things infrared temperature measuring punch in machine with esp32 / rush to work after the Spring Festival? Baa, no matter how hard you work, you must take your temperature first
- tutle时钟改进版
- 云原生架构实战案例及优化解决方案
- Thread pool: use thread pool to optimize query speed
- 小程序毕业设计---美食、菜谱小程序
猜你喜欢
光模塊字母含義及參數簡稱大全
小程序毕业设计---美食、菜谱小程序
Appearance of LabVIEW error dialog box
云原生架构实战案例及优化解决方案
Automated testing selenium foundation -- webdriverapi
KMP match string
C language simple student management system (including source code)
Simulated small root pile
[interested reading] advantageous filtering modeling on long term user behavior sequences for click through rate pre
如何使用postman实现简单的接口关联【增删改查】
随机推荐
[matlab] communication signal modulation general function interpolation function
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
2022 R2 mobile pressure vessel filling retraining question bank and answers
SQL injection - injection based on MSSQL (SQL Server)
[matlab] matlab simulation modulation system SSB system
flink1.13 sql基础语法(一)DDL、DML
Supplement the JS of a video website to decrypt the video
RSA加密应用常见缺陷的原理与实践
【雕爷学编程】Arduino动手做(105)---压电陶瓷振动模块
Appearance of LabVIEW error dialog box
Notepad++ -- display related configurations
IP时代来临,电竞酒店如何借好游戏的“东风”?
Etcd database source code analysis - initialization overview
[matlab] general function of communication signal modulation - generation of narrow-band Gaussian white noise
一键过滤选择百度网盘文件
Thinkphp6.0 middleware with limited access frequency think throttle
Use of hutool Pinyin tool
Electronic components mall and data manual download website summary
Flink1.13 SQL basic syntax (I) DDL, DML
BUU-Crypto-[GUET-CTF2019]BabyRSA