Changes

Jump to: navigation, search

OSGi : Develop Simple Apps

43 bytes added, 15:33, 22 January 2011
no edit summary
The bundle export the package cs.ecl.osgi.simple.bookfinderservice Meanwhile, the implementation package - cs.ecl.osgi.simple.bookfinderservice.internals - <strong>is hidden to the outside world and can be change dynamically</strong> and can be changed dynamically anytime a better implementation is created.
The bundle requires the osgi framework and the interface bundle (e.g. bookfinder bundle)
The bundle requires the generic bundle service definition: cs.ecl.osgi.simple.bookfinder;bundle-version="1.0.0"
The bundle requires the osgi framework by asking for the org.osgi.framework;version="1.3.0" package
: Require-Bundle: cs.ecl.osgi.simple.bookfinder;bundle-version="1.0.0"
: Import-Package: org.osgi.framework;version="1.3.0"
 
The bundle export its service (for instance, the bood finder service - cs.ecl.osgi.simple.bookfinderservice)
 
: Export-Package: cs.ecl.osgi.simple.bookfinderservice

Navigation menu