關于BeanFactory和Application的區(qū)別和聯(lián)系

官網(wǎng)說明

原文地址

https://docs.spring.io/spring/docs/5.0.8.RELEASE/spring-framework-reference//core.html#beans

原文內(nèi)容

The org.springframework.beans and org.springframework.context packages are the basis for Spring Framework’s IoC container. The BeanFactory interface provides an advanced configuration mechanism capable of managing any type of object. ApplicationContext is a sub-interface of BeanFactory. It adds easier integration with Spring’s AOP features; message resource handling (for use in internationalization), event publication; and application-layer specific contexts such as the WebApplicationContext for use in web applications.

個人理解

“org.springframework.beans”和“org.springframework.context”是Spring IoC容器的基礎。BeanFactory接口提供了管理對象的能努力,ApplicationContext接口是BeanFactory的子接口,它在BeanFactory的IoC的基礎上提供了AOP特性、消息(國際化)處理、事件發(fā)布和應用層的其他特性,如WebApplicationContext在web應用中的使用。

?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容