随笔 - 3, 文章 - 0, 评论 - 2, 引用 - 0
数据加载中……

个人翻译的 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 on 2008-03-06 12:49 codefanatic 阅读(1271) 评论(0)  编辑  收藏 所属分类: Spring OSGi


只有注册用户登录后才能发表评论。


网站导航: