Require-Bundle

From OSGi Community Wiki

Jump to: navigation, search

The Require-Bundle header is used to express a dependency on a bundle's exports by reference to its symbolic name instead of via specific packages. This was introduced in OSGi R4, as a means to solve Eclipse's dependencies, which typically used Require-Bundle to express dependencies. These days, best practice suggests using Import-Package instead of Require-Bundle.

Require-Bundle: com.example.acme,com.example.other;bundle-version=1.0.0

See also Use Import-Package instead of Require-Bundle, which is a Best Practice.

Javadoc

5 - 4.3 - 4.2 - 4.1 - 4.0.1 - 3 - 2

Personal tools
Namespaces
Variants
Actions
Navigation
JavaDoc
Wiki
Toolbox