1. Dream Lets design a house
House
Door Window
Kitchen Area
Hall Area
W W
i i
n n
d d
o
Dining Area Wash Area o
w w
Bed Area
Bath Area
Window
1
2. Dream Lets design a house
House
*&@#^
Door Window
Kitchen Area
Hall Area
W W
i i
n n
d d
o NeedDining Area separation Area
rooms for Wash o
w
w
Bed Area
Bath Area
Window
2
3. Dream
Lets design a Software
App
Main API
Jar 5
Jar 1
A A
P
I
Need modules for
Jar 6 Jar 4
P
I
separation
Jar 2
Jar 3
API
3
4. OSGi Tutorial
Prakash G.R.
Eclipse Platform UI Team
IBM ISL
www.eclipse-tips.com
4
5. Agenda
● What is OSGi
● Features
● “Hello world” in OSGi
● Anatomy of a module
● Lifecyle
● DS
● No death by bullets in the presentation
5
6. What is OSGi
Dynamic module system for Java
Services Framework
Versioning
● Bundle == Module == plug-in
6
7. What is a Bundle
● Identification
● Requirements
● Capabilities
● Anatomy
7
9. Declarative Services
● Based on Components
● Components can provide Services
● Components can refer Services
● binding/unbinding/activating/deactivating
taken care by the bundle
9