Spring文档阅读之Core Technologies
生活随笔
收集整理的這篇文章主要介紹了
Spring文档阅读之Core Technologies
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Spring核心技術文檔
IOC(Inversion Of Controller)
1.The IoC Container
IOC可以理解為對象通過構造方法或者工廠方法定義依賴的對象(Spring中稱為Bean)。
IOC最底層的包是OC容器的基礎包是org.springframework.beans和org.springframework.context:
| 包名 | 功能 |
|---|---|
| org.springframework.beans | 操作JavaBean的接口和類 |
| org.springframework.beans.annotation | 僅有一個類AnnotationBeanUtils(可將注解的屬性復制到類中) |
| org.springframework.beans.factory | Spring IOC功能的核心包 |
| org.springframework.beans.factory.annotation | 提供注解配置Bean的功能 |
| org.springframework.beans.factory.aspectj | 僅有一個ConfigurableObject接口(將類標記為需要通過切面進行依賴注入) |
| org.springframework.beans.factory.config | SPI接口和BeanFactory配置相關的工具類 |
| org.springframework.beans.factory.groovy | 提供對于groovy定義的Bean的支持 |
| org.springframework.beans.factory.parsing | 支持Bean定義的解析功能 |
| org.springframework.beans.factory.serviceloader | Java6 新增的serviceloader功能的支持 |
| org.springframework.beans.factory.support | 支持org.springframework.beans.factory包的功能 |
| org.springframework.beans.factory.wiring | |
| org.springframework.beans.factory.xml | 主要包含一個抽象的基于xml定義的BeanFactory實現 |
| org.springframework.beans.propertyeditors | Spring用于將字符串轉換成Java對象屬性的工具類 |
| org.springframework.beans.support | Bean的工具類,比如對于Bean的分類和容器 |
| org.springframework.context | 基于beans包,提供對于消息資源和觀察者模式的支持,并且使容器內對象可以使用統一的工具獲取資源 |
| org.springframework.context.annotation | 提供對于Application context的注解支持,包括組件掃描,基于Java元數據(注解)創建Spring管理的對象 |
| org.springframework.context.annotation.aspectj | 僅有一個類SpringConfiguredConfiguration,可以為@Configurable注釋的非Spring管理對象提供依賴注入 |
| org.springframework.context.config | 支持引用上下文配置,主要使用xml配置 |
| org.springframework.context.event | 對于Spring事件(比如監聽器)的支持 |
| org.springframework.context.expression | Bean的工具類,比如對于Bean的分類和容器 |
| org.springframework.context.i18n | Bean的工具類,比如對于Bean的分類和容器 |
| org.springframework.context.index | Bean的工具類,比如對于Bean的分類和容器 |
| org.springframework.context.index.processor | Bean的工具類,比如對于Bean的分類和容器 |
| org.springframework.context.support | Bean的工具類,比如對于Bean的分類和容器 |
| org.springframework.context.weaving | Bean的工具類,比如對于Bean的分類和容器 |
[1]: spring beans源碼解讀之--總結篇
[2]: java之元數據(metadata)
總結
以上是生活随笔為你收集整理的Spring文档阅读之Core Technologies的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 文献记录(part84)--A near
- 下一篇: 美的空调温度传感器 在哪