OSGi Concepts Services
Revision as of 15:23, 21 January 2011 by Jordan.anastasiade (talk | contribs) (Created page with '{Ecl_menu}<h2>OSGi Services</h2> :A bundles can register and use services in OSGi. OSGi provides therefore a central registry for this purpose. A service is defined by a Java in…')
{Ecl_menu}
OSGi Services
- A bundles can register and use services in OSGi. OSGi provides therefore a central registry for this purpose. A service is defined by a Java interface (POJI - Plain Old Java Interface) [1].
- Access to the service registry is performed via the class BundleContext. OSGi injects the BundleContext into each bundle during the startup of the bundle. A bundle can also register itself to the BundleContext ServiceEvents which are for example triggered if a new service is installed or de-installed.