Spring 容器 从 XML 文件中读取 bean 的定义,并实例化 bean。

Spring 根据 bean 的定义填充所有的属性。

如果 bean 实现了 BeanNameAware 接口,Spring 传递 bean 的 ID 到

setBeanName 方法。

如果 Bean 实现了 BeanFactoryAware 接口, Spring 传递

beanfactory 给 setBeanFactory 方法。

如果有任何与 bean 相关联的 BeanPostProcessors,Spring 会在

postProcesserBeforeInitialization()方法内调用它们。

如果 bean 实现 IntializingBean 了,调用它的 afterPropertySet 方法,

如果 bean 声明了初始化方法,调用此初始化方法。

如果有 BeanPostProcessors 和 bean 关联,这些 bean 的

postProcessAfterInitialization() 方法将被调用。

如果 bean 实现了 DisposableBean,它将调用 destroy()方法。

最新文章

  1. Electronic oscillator
  2. CodeBlock 使用TextOut出错
  3. haproxy 安装 各个参数的测试
  4. 测试-Animator的“当前剪辑CurrentAnimatorStateInfo”
  5. iOS开发——企业证书(免审核 299$)
  6. 【Bug笔记】The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
  7. Jmeter+Jenkins的聚合报告中添加QPS栏目显示
  8. VMware14.0.0 版本虚拟机安装Ubuntu16.04 LTS版本Linux系统(多图详细步骤)
  9. 20165314《网络对抗技术》week1 Exp0 Kali安装
  10. hbase_1
  11. 【Linux】【Java】CentOS7安装最新版Java1.8.191运行开发环境
  12. maya shell 和 UV shell 的区别
  13. 《DSP using MATLAB》Problem 7.5
  14. hdu5157 Harry and magic string【manacher】
  15. Bytom矿池接入协议指南
  16. Java SE-基本数据类型对应包装类
  17. 阿里云CentOS 7服务器挂载数据盘
  18. angularAMD快速入门
  19. BZOJ1879_Bill的挑战_KEY
  20. Intel MKL(Math Kernel Library)

热门文章

  1. BI系统:发挥大数据的价值
  2. vue项目npm run dev 报错error in ./src/main.js Module build failed: Error: Cannot find module 'babel-plugin-syntax-jsx'
  3. WebSocket长连接
  4. php 23种设计模式 - 迭代器模式
  5. 如何实现 UITabbarController 的 State Preservation?
  6. C盘爆满,你的专属清道夫来啦
  7. 命令行安装django以及新建项目及应用
  8. ArcMap操作练习题目及答案
  9. 如何构建Docker镜像
  10. 使用python自动发放员工工资条到个人邮箱