第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