This link has been bookmarked by 53 people . It was first bookmarked on 20 Nov 2008, by Lubos Pochman.
-
21 Mar 12
-
19 Mar 12
-
24 Sep 11
-
02 Sep 11
-
The smallest unit of modularization in OSGi is a bundle
-
OSGi defines a registry which bundles can use to publish services or register to other services.
-
In Eclipse the smallest unit of modularization is a plugin .
-
OSGi bundles are .jar files with additional meta information. This meta information is stored in the folder "META-INF" in the file "MANIFEST.MF".
-
Via MANIFEST.MF a bundle can define its dependency to other bundles and services.
-
Classes which are not exported via the MANIFEST.MF are not visible to other bundles.
-
Access to the restricted classes is not possible, also not via reflection.
-
Access to the service registry is performed via the class BundleContext.
-
The bundles can use the service listeners to get informed if a services is stared or stopped.
-
If the version are the same then the bundle with the lowest ID is taken.
-
If several bundles exists which would satisfy the dependency then the bundle with the highest version is taking.
-
Export your bundle. This will allow you to install it into a OSGi runtime. Select your bundle and choose File -> Export -> Plug-in Development -> "Deployable plug-ins and fragment".
-
OSGi platform provides a flexible mechanism for provisioning functionality via services.
-
A service in OSGi is defined by a standard Java class or interface.
-
The reason for this is that OSGi is a very dynamic environment and service may be registered and de-registered any time.
-
OSGi provides a service to track service events (new service / stop services / started service). For this the package "org.osgi.util.tracker" is used. This is part of the org.eclipse.osgi plugin.
-
Declarative services (DS) allow to define and consume services via metadata (XML).
-
-
18 Aug 11
-
The core of the OSGi specification defines a component and service model.
-
OSGi defines a registry which bundles can use to publish services or register to other services.
-
-
15 Jul 11
-
21 May 11
-
14 Apr 11
Hiromasa Kittakagives an overview of OSGi. It explains the creation and consumption of OSGi services via ServiceTrackers and declarative services. Eclipse Equinox is used as an standalone OSGi server. For this tutorial Eclipse 3.6 (Helios) is used.
-
05 Apr 11
-
30 Mar 11
-
25 Dec 10
-
30 Jun 10
-
06 Jun 10
-
OSGi with Eclipse Equinox - Tutorial
-
-
05 May 10
-
11 Apr 10
Tomislav Rajaković"OSGi is a specification of a service and module platform in Java at runtime. The OSGi specification has several parts, the core of the OSGi specification defines a component and service model. This component model allows to activate, de-activate, update and de-install existing components and services and to install new components / services dynamically.
The smallest unit of modularization in OSGi is a bundle. OSGi defines a registry which bundles can use to publish services or register to other services." -
20 Jan 10
-
22 Nov 09
-
18 Aug 09
-
16 May 09
-
14 Apr 09
-
02 Apr 09
-
04 Dec 08
Thanakrit WongyuedAbstract This article will give an introduction into the OSGi framework using Eclipse Equinox. The core of OSGi defines a component and service model. One of the key features of OSGi is that you can define per Java package (within an OSGi bundle) if this
-
20 Nov 08
-
06 Nov 08
-
29 Oct 08
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.