文章目录
- 1. BeanPostProcessor官方解释
- 2. 接口的方法
- 2.1 postProcessBeforeInitialization
- 2.2 postProcessAfterInitialization
- 3. 重要的几个子接口
- 4. 注册BeanPostProcessor
- 5. 重要的BeanPostProcessor
1. BeanPostProcessor官方解释
Factory hook that allows for custom modification of new bean instances, e.g. checking for marker interfaces or wrapping them with proxies.
允许对新建实例的定制修改,比如检查标记接口或用代理包装他们
ApplicationContexts can autodetect BeanPostProcessor beans in their bean definitions and apply them to any beans subsequently created. Plain bean factories a