In this step the Vendor Service library bundle is created that exports a
package that contains the VendorService interface. Other
bundles will create implementations of this interface and register them
with the OSGi framework, while others will acquire an implementation of
this interface from the OSGi framework.
org.eclipse.soda.sat.tutorial.vendor.service that is
targeted for the standard OSGi framework.
org.eclipse.soda.sat.tutorial.vendor.service, making it
match the name of the plug-in project.
Vendor Service.
Take care on the second page of the
wizard to uncheck the checkbox titled Generate an activator, a Java
class that controls the plug-in's life cycle since we do not want
the PDE to generate a bundle activator.
org.eclipse.soda.sat.tutorial.vendor.service.
VendorService as
follows:
package org.eclipse.soda.sat.tutorial.vendor.service;
public interface VendorService {
public static final String SERVICE_NAME = VendorService.class.getName();
public String getName();
public String sell();
}
META-INF/MANIFEST.MF file using the
manifest editor. Turn to the Runtime page and add the
package org.eclipse.soda.sat.tutorial.vendor.service to the
Exported Packages list.
META-INF/MANIFEST.MF file should be as
follows. Note that the Bundle-Localization manifest
header has been removed since it is not necessary for this tutorial.
Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Vendor Service Bundle-SymbolicName: org.eclipse.soda.sat.tutorial.vendor.service Bundle-Version: 1.0.0 Export-Package: org.eclipse.soda.sat.tutorial.vendor.service
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.