To create a connector, you extend the connector base class, available in the connector library. The base class for the connector includes methods for initialization and setup of the connector's application-specific component. Your derived connector class contains the code for the application-specific component of the connector.
The connector base class includes the methods shown in Table 24. You must implement these methods in your connector.
Description | Connector base class method | For more information |
---|---|---|
Initializes the connector's application-specific component | agentInit() | Initializing the connector |
Returns the version of the connector | getVersion() | Checking the connector version |
Sets up one or more business object handlers | getConnectorBOHandlerForBO() | Obtaining the business object handler |
Polls for application events | pollForEvents() | Polling for events |
Performs cleanup tasks upon connector termination | terminate() | Shutting down the connector |
Figure 25 illustrates the complete set of methods that the connector framework calls, and shows which methods are called at startup and which are called at runtime. All but one of the methods that the connector framework calls are in the connector base class. The remaining method, doVerbFor(), is in the business object handler class; for information on implementing the doVerbFor() method, see Request processing.
For more information on extending the connector base class, see Extending the Java business-object-handler base class.