4.1

Table Of Contents
3 Import the classes of the plug-in configuration API with a Java import statement.
import ch.dunes.util.Localizator;
import ch.dunes.vso.sdk.conf.*;
import ch.dunes.vso.sdk.helper.SDKHelper;
4 Import the classes of the application to plug in with a Java import statement.
import com.vmware.solarsystem.*;
5 Import any other classes that the configuration adapter implementation requires.
In the solar system example, the configuration adapter implementation requires the following classes:
import java.io.*;
import java.util.*;
6 Declare a public class that implements the IConfigurationAdaptor interface.
public class SolarSystemConfigurationAdaptor implements IConfigurationAdaptor {
}
You set up the plug-in configuration adapter implementation.
What to do next
Define methods to load and save plug-in configuration information.
Load and Save Configuration Information in the Configuration Server
The IConfigurationAdaptor interface provides methods to load and save configuration information in the
Orchestrator configuration server. The configuration adapter uses these methods to locate and update the
configuration information for a plug-in by setting plug-in properties.
You also create methods in the configuration adapter to define the values that the user can configure.
Orchestrator reloads this information each time this user connects to the Orchestrator server. You can validate
the information that the user provides.
In the solar system example, the SolarSystemConfigurationAdaptor class defines methods to allow users to
select their home planet and to define Pluto as either a planet or as a dwarf planet. The
SolarSystemConfigurationAdaptor class implements the methods of the IConfigurationAdaptor interface to
load and save configuration information and to validate the information that the users provide. The methods
that SolarSystemConfigurationAdaptor defines are implemented by the SolarSystemConfigureAction class.
Prerequisites
n
Implement the plug-in adapter and factory interfaces.
n
Set up the configuration adapter implementation class.
Procedure
1 Declare variables for the plug-in name and for the configurable values.
The SolarSystemConfigurationAdaptor class declares the following variables:
private static final String pluginName = "SolarSystem";
private String homePlanet;
private String plutoClassifiedAsAPlanet = "yes";
Chapter 7 Developing Plug-Ins
VMware, Inc. 187