4.0

Table Of Contents
Set Up the Configuration Adapter
To create a tab in the configuration interface for a plug-in, you create an implementation of the
IConfigurationAdaptor interface from the Orchestrator plug-in API. You also call the methods of the
SDKHelper class.
Prerequisites
n
You have an application to plug in to Orchestrator.
n
You have access to the Orchestrator plug-in API JAR file.
n
Implement the plug-in adapter and factory interfaces.
Procedure
1 Create and save a Java file for the plug-in configuration adapter implementation.
In the solar system example, the configuration adapter class is named
SolarSystemConfigurationAdaptor.java.
2 Declare the package that contains the Java classes of the plug-in configuration implementation.
The solar system example declares the following package:
com.vmware.orchestrator.api.sample.solarsystem.config;
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.ConfigurationError;
import ch.dunes.vso.sdk.conf.WebConfigurationAdaptor;
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.awt.Component;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.Properties;
6 Declare a public class that implements the IConfigurationAdaptor interface.
public class SolarSystemConfigurationAdaptor implements WebConfigurationAdaptor {
}
The WebConfigurationAdaptor class extends the IConfigurationAdaptor interface.
You set up the plug-in configuration adapter implementation.
What to do next
Define methods to load and save plug-in configuration information.
vCenter Orchestrator Developer's Guide
192 VMware, Inc.