Changes

Jump to: navigation, search

OSGi : Develop Simple Apps

1,205 bytes added, 16:24, 22 January 2011
no edit summary
</source>
<h6h5>2.2.1 Define the internal implementation class (This class will not be exposed to the outside world)</h6h5>
<source lang="java">
</source>
 
Define in the MANIFEST.MF for cs.ecl.osgi.simple.bookfinderservice
<source lang="xml">
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Bookfinderservice
Bundle-SymbolicName: cs.ecl.osgi.simple.bookfinderservice
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: cs.ecl.osgi.simple.bookfinderservice.Activator
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: org.osgi.framework;version="1.3.0"
Bundle-Vendor: Seneca College - Eclipse Course
Export-Package: cs.ecl.osgi.simple.bookfinderservice
Require-Bundle: cs.ecl.osgi.simple.bookfinder;bundle-version="1.0.0"
</source>
 
The bundle export the package cs.ecl.osgi.simple.bookfinderservice <strong>Meanwhile, the implementation package - cs.ecl.osgi.simple.bookfinderservice.internals - is hidden to the outside world and can be change dynamically</strong>
 
 
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"

Navigation menu