OSGi bundle n Bundle 是一個Java Archive(JAR)檔案,該 JAR 檔 包含 Java類別(Class)、啓動類別(Activator Class)、清單文件檔(Manifest Header)和一些資 源檔(如HTML 網頁或JPG 圖檔等)。 7
OSGi bundle 8
Class Loading概念圖 10
Service Registry 11
OSGi的優點 n Platform Independent n Application Independent n Secure n Multiple Services n Multiple Local Network Technologies n Multiple Device Access Technologies n Co-existence with Other Standards 12
An UPn. P/HAVI software bridge 13
OBR (OSCAR Bundle Repository) n 提供一個容器並且告知bundle能被部署 到哪一個OSGi的Framework上。 n 增加bundle的可見度以及群組性。 14
OBR示意圖 15
Oscar n Oscar is an open source implementation of the Open Services Gateway Initiative (OSGi) framework specification; the goal is to provide a completely compliant implementation of the OSGi framework specification. n OSCAR可以運用它的plug-in或是擴充(extension)機制, 可以很容易的被嵌入到其他的專案上。 n 動態的組裝應用程式(Dynamic assembly of applications) 17
Oscar GUI Shell n n . . . Oscarlibsystem. properties. . . oscartest 07 18