Try OpenEdge Now
skip to main content
Managed Adapters Guide
Understanding the Managed Adapter framework : Framework components : Supported APIs
 

Supported APIs

This section describes the various APIs supported by the Managed Adapter Framework and presents a sample code for them.
com.savvion.sbm.adapters.framework.ManagedAdapter
public abstract class ManagedAdapter {
protected Object input;
protected Object output;
public final static int LOG_ERROR = 0;
public final static int LOG_WARNING = 1;
public final static int LOG_MESSAGE = 2;
public final static int LOG_TRACE = 3;
public void log(int logLevel, String message);
}
com.savvion.sbm.adapters.framework.AdapterConfigurator
public interface AdapterConfigurator {
public void configForm(Hashtable context) throws Exception;
}
com.savvion.sbm.adapters.framework.MapConfigurator
public interface MapConfigurator {
public void buildMap(Hashtable context, Hashtable inputDataslots,
Hashtable outputDataslots) throws Exception;
public void buildMap(Hashtable context, Hashtable inputDataslots,
Hashtable outputDataslots, Component parent) throws Exception;
public void init(Hashtable context) throws Exception;
public void loadConfig() throws Exception;
public void loadMaps() throws Exception;
public void prepare(Hashtable inputDataslots, Hashtable outputDataslots) throws Exception;
public void prepareAndShowGUI(Component parent) throws Exception;
public void save(Hashtable context) throws Exception;
public Collection getInputDataslots() throws Exception;
public Collection getOutputDataslots() throws Exception;
}
com.savvion.sbm.adapters.framework.Mapper
public interface Mapper {
public void setMapinfo(Hashtable data) throws Exception;
public Object mapIn(Hashtable data) throws Exception;
public Hashtable mapOut(Object data) throws Exception;
public String getInputSource(String input) throws Exception;
public String getOutputDestination(String output) throws Exception;
public String getOutputDestinationType(String output) throws Exception;
}
* Sample code of a Managed Adapter