Adapter Shell

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.

  1. The Adapter Shell loads the adapter plug-in.

  2. The Adapter Shell initializes itself.

  3. 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.

  4. The e-ADK calls functions in the adapter plug-in.

  5. 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.

  6. Adapter Shell throws and handles exceptions as they occur.