Expand my Community achievements bar.

SOLVED

use of Export-Package and import-package in Manifest file of osgi bundle

Avatar

Level 5

Hi,

Please clear what is the uses of Export-Package and Import-Package present in Manifest file.

 

 

Thanks,

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Varun,

Packages which are needed by the bundle are listed in 'Import-Package' 

Some of the packages from the bundle would be used in the other bundles. Such packages are listed in 'Export-Package' to make it available for the other bundles.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi Varun,

Packages which are needed by the bundle are listed in 'Import-Package' 

Some of the packages from the bundle would be used in the other bundles. Such packages are listed in 'Export-Package' to make it available for the other bundles.

Avatar

Level 10

You can refer these

http://www.eclipse.org/virgo/documentation/virgo-documentation-3.6.0.M01/docs/virgo-user-guide/html/...

http://en.wikipedia.org/wiki/OSGi

  • Export-Package: Expresses which Java packages contained in a bundle will be made available to the outside world.
  • Import-Package: Indicates which Java packages will be required from the outside world to fulfill the dependencies needed in a bundle.