Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
Bundle-Activator: tutorial.example3.Activator
Import-Package: tutorial.example2.service
Bundle-Name: Dictionary client
Bundle-Description: A bundle that uses the dictionary service if it finds it at startup
Bundle-Vendor: RichardApache HallFelix
Bundle-Version: 1.0.0

We specify the bundle's activator class via the Bundle-Activator attribute and also specify that our class imports the shared package of the dictionary service interface using the Import-Package attribute. This import clause will be fulfilled by the bundle in Example 2, which exports the package that this bundle is importing. The OSGi framework will automatically handle the details of resolving import packages.

...