個(gè)人翻譯的 Spring Dynamic Modules Reference Guide 文檔(3)
Chapter 2. 環(huán)境需求
Spring Dynamic Modules 1.0 支持JDK 1.4 及以上版本和 OSGi R4 及以上版本。在 manifest (OSGi R4)中,使用了Spring Dynamic Modules的Bundles應(yīng)當(dāng)標(biāo)明 "Bundle-ManifestVersion: 2"。 我們基于 Equinox 3.2.2做了測試, Felix 1.0.1, and Knopflerfish 2.0.3 as part of our continuous integration process.
Part II. 參考文檔
Document structure
在參考文檔的這個(gè)部分將詳細(xì)解釋Spring Dynamic Modules所提供的核心功能。
Chapter 3, Bundles and Application Contexts 描述 OSGi Bundle 和 Spring 應(yīng)用上下文之間的關(guān)系,并且介紹Spring Extender Bundle 對自動初始化應(yīng)用上下文的支持。
Chapter 4, Packaging and Deploying Spring-based OSGi applications 描述如何在OSGi環(huán)境中部署 Spring Framework jar 文件,以及如何應(yīng)用擴(kuò)展的 APIs 從 application bundles should you need to do so. 這個(gè)章節(jié)也將解釋一些問題,這些問題是關(guān)于在OSGi環(huán)境中何時(shí)使用現(xiàn)存的并非為OSGi設(shè)計(jì)的企業(yè)級類庫。
Chapter 5, The Service Registry 描述怎樣導(dǎo)出Spring beans作為服務(wù)在OSGi服務(wù)注冊中,以及如何注入OSGi服務(wù)引用到bean中。這一章也定義具有動態(tài)生命周期的OSGi服務(wù)和bundle如何被支持的。
Chapter 6, Working with Bundles 描述如何聲明一個(gè)描繪OSGi bundle的bean,包括在OSGi平臺中安裝bundle的支持信息。
Chapter 7, Testing OSGi based Applications 解釋被 Spring Dynamic Modules 所提供的測試整合。這使得你可以寫出簡單的JUnit整合測試用例,這些用例能夠啟動一個(gè)OSGi 環(huán)境,安裝整合測試所需的bundle,在OSGi中執(zhí)行測試用例,還有返回結(jié)果給運(yùn)行者。這使得整合OSGi測試同一個(gè)JUnit測試環(huán)境變得非常容易。
posted on 2008-03-06 12:49 codefanatic 閱讀(1296) 評論(0) 編輯 收藏 所屬分類: Spring OSGi