第1章 osgi简介.5
1.1 梦想中“即插即用”的系统5
1.2 osgi,拯救java模块化的规范1
1.3 厚积薄发的osgi2
1.4 osgi基本概念7
1.4.1 bundle3
1.4.2 service4
1.4.3 service-oriented component model(socm)4
1.4.4 declarative service6
1.4.5 部署6
第2章 osgi框架简介
(equinox和spring-dm这两个框架要重点掌握)
2.1 equinox11
2.1.1 简介7
2.1.2 环境搭建7
2.1.3 helloworld10
2.1.4 开发传统类型的应用21
2.1.5 从外部启动equinox39
2.2 felix42
2.2.1 简介38
2.2.2 环境搭建38
.2.2.3 应用的部署38
2.2.4 在eclipse中调试felix39
2.3 spring-dm47
2.3.1 简介43
2.3.2 环境搭建44
2.3.3 helloworld48
2.3.4 web版helloworld51
第3章 基于spring-dm实现petstore
(spring-dm框架应该是经常使用的框架,需要加强spring-dm可以动态部署与卸载模块,确实强大)
3.1 “即插即用”的petstore57
3.1.1 petstore的功能需求57
3.1.2 osgi框架的功能和设计思想58
3.1.3 petstore的设计60
3.2 新一代petstore的实现74
3.2.1 环境准备70
3.2.2 utils模块72
3.2.3 bootstrap模块74
3.2.4 productdal模块79
3.2.5 shoppingcartdal模块80
3.2.6 productlist模块81
3.2.7 shoppingcart模块85
3.2.8 productmanagement模块85
3.3 部署89
3.4 petstore的扩展89