use of Export-Package and import-package in Manifest file of osgi bundle | Community
Skip to main content
varuns46785756
Level 5
October 16, 2015
Solved

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

  • October 16, 2015
  • 3 replies
  • 4874 views

Hi,

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

 

 

Thanks,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

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.

3 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

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.

Lokesh_Shivalingaiah
Level 10
October 16, 2015

You can refer these

http://www.eclipse.org/virgo/documentation/virgo-documentation-3.6.0.M01/docs/virgo-user-guide/html/ch02s02.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.
varuns46785756
Level 5
October 16, 2015

thanks