Difference between revisions of "OSGi Concepts Bundles"

From CDOT Wiki
Jump to: navigation, search
Line 4: Line 4:
  
 
<pre>
 
<pre>
 
 
Manifest-Version: 1.0
 
Manifest-Version: 1.0
 
Bundle-ManifestVersion: 2
 
Bundle-ManifestVersion: 2
Bundle-Name: Popup Plug-in
+
Bundle-Name: Bookfinderservice
Bundle-SymbolicName: cs.ecl.osgi.basics;
+
Bundle-SymbolicName: cs.ecl.osgi.simple.bookfinderservice
Bundle-Version: 1.0.0
+
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: cs.ecl.osgi.basics.Activator
+
Bundle-Activator: cs.ecl.osgi.simple.bookfinderservice.Activator
Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime
 
 
Bundle-ActivationPolicy: lazy
 
Bundle-ActivationPolicy: lazy
 
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
 
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"
 
</pre>
 
</pre>

Revision as of 12:48, 19 January 2011

Bundle = JAR file + MANIFEST.MF file

An example of a MANIFEST.MF

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"