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.
org.eclipse.soda.sat.tutorial.vendor.service project.
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();
}
SPICINESS_PROPERTY constant has
been added.
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.
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.