The e-ADK provides an executable that contains libraries and classes that run the adapters. The executable functionality is sometimes called Adapter Shell. The Adapter Shell provides a consistent processing flow for all adapters, for example, similar command line, configuration, and processing. The Adapter Shell performs general initialization and setup before calling a function and then cleans up before shutdown. The following numbers correspond with the numbers on the graphic in the previous section.
The Adapter Shell loads the adapter plug-in.
The Adapter Shell initializes itself.
Determine the mode and data representation. The modes are Acquire, Deliver, Process, Schema, Schema Remove and Catalog. Data representation is either tree (NDO) or buffer.
Initialize input and/or output transports and open the transports for Acquire, Deliver, and Process modes.
The e-ADK calls initAdapter() in the adatper plug-in. You must provide the configuration information as a parameter in the adapter plug-in. Based on the invocation, the mode is executed in a loop with the appropriate plug-in function called and the transport or schema functionality performed.
The e-ADK calls functions in the adapter plug-in.
The e-ADK calls shutdownAdapter() in the adapter plug-in. You must provide the configuration information as a parameter in the adapter plug-in. Processing finishes and shutdown is called.
Adapter Shell throws and handles exceptions as they occur.