個人翻譯的 Spring Dynamic Modules Reference Guide 文檔(3)
Chapter 2. 環境需求
Spring Dynamic Modules 1.0 支持JDK 1.4 及以上版本和 OSGi R4 及以上版本。在 manifest (OSGi R4)中,使用了Spring Dynamic Modules的Bundles應當標明 "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
在參考文檔的這個部分將詳細解釋Spring Dynamic Modules所提供的核心功能。
Chapter 3, Bundles and Application Contexts 描述 OSGi Bundle 和 Spring 應用上下文之間的關系,并且介紹Spring Extender Bundle 對自動初始化應用上下文的支持。
Chapter 4, Packaging and Deploying Spring-based OSGi applications 描述如何在OSGi環境中部署 Spring Framework jar 文件,以及如何應用擴展的 APIs 從 application bundles should you need to do so. 這個章節也將解釋一些問題,這些問題是關于在OSGi環境中何時使用現存的并非為OSGi設計的企業級類庫。
Chapter 5, The Service Registry 描述怎樣導出Spring beans作為服務在OSGi服務注冊中,以及如何注入OSGi服務引用到bean中。這一章也定義具有動態生命周期的OSGi服務和bundle如何被支持的。
Chapter 6, Working with Bundles 描述如何聲明一個描繪OSGi bundle的bean,包括在OSGi平臺中安裝bundle的支持信息。
Chapter 7, Testing OSGi based Applications 解釋被 Spring Dynamic Modules 所提供的測試整合。這使得你可以寫出簡單的JUnit整合測試用例,這些用例能夠啟動一個OSGi 環境,安裝整合測試所需的bundle,在OSGi中執行測試用例,還有返回結果給運行者。這使得整合OSGi測試同一個JUnit測試環境變得非常容易。
posted @ 2008-03-06 12:49 codefanatic 閱讀(1295) | 評論 (0) | 編輯 收藏