Step 1: Updating the Vendor Service Bundle to Include a Spiciness Constant

In this step the Vendor Service bundle is updated to include a spiciness constant that will be used by bundles that export a VendorService with properties, as well as by bundles that import a VendorService using an LDAP filter.

  1. In the Package Explorer find the org.eclipse.soda.sat.tutorial.vendor.service project.
  2. Find the VendorService interface and update it as follows. The updates are highlighted in bold.
    package org.eclipse.soda.sat.tutorial.vendor.service;
    
    public interface VendorService {
      public static final String SERVICE_NAME = VendorService.class.getName();
      public static final String SPICINESS_PROPERTY = "spiciness";  //$NON-NLS-1$
      public String getName();
      public String sell();
    }
    
  3. As you can see, a public SPICINESS_PROPERTY constant has been added.
  4. Bundles that export a VendorService with properties will use this constant to define the spiciness of the service they are registering. Bundles that import a VendorService will use this constant to define the LDAP filter that describes the spiciness of the service they are acquiring.