O'Reilly logo

Mastering Eclipse Plug-in Development by Dr. Alex Blewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

OSGi fragment bundles

An OSGi runtime consists of a set of bundles running in a managed environment. These bundles provide classes and resources, a (sub)set of which can be exported to other bundles. Each bundle has its own class space (provided by its own ClassLoader instance) that permits the dependencies and exports to be wired up appropriately.

OSGi also has the ability to manage fragment bundles or simply fragments. These are like bundles that don't have their own life cycle, but can still contribute classes and package dependencies to a host bundle at runtime.

The difference between a fragment bundle and a host bundle is the existence of the Fragment-Host header, which specifies the Bundle-SymbolicName and, optionally, the bundle-version ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required