Tuesday, October 11, 2011

OSGi Framework

1. A modularity framework

The OSGi Framework is an execution environment in which functional modules are run. Theses modules are called bundles. Even though these two words are linked, there is an important difference between the concept they represent. Both deal with modularity, but modules are logical modularity elements, and bundles are physical logical elements.

Modules : A set of encapsulated implementation classes, offering a public API based on a subset of classes (or interfaces), and a set of dependencies on external code.
Bundles : A physical unit (jar) of modularity containing code, resources and metadata.

2. Framework architecture

The OSGi Framework contains three layers (plus one for security, not exposed here).

 Here they are :

The module layer manages packaging and code export/import.
The lifecycle layer manages bundles lifecycle, and provides bundles an execution context.
The services layer allows interaction and communication between bundles.

No comments:

Post a Comment