ODKAgentBase2 class

The Object Discovery Agent Development Kit (ODK) API provides the ODKAgentBase2 class as the base class for an Object Discovery Agent (ODA). From this class, an ODA developer must derive an ODA class and implement the abstract methods for the ODA.

Note:
The ODKAgentBase2 class extends the ODKAgentBase class of the low-level ODA library. It inherits the getAgentProperties(), getVersion(), init(), and terminate() methods of this class. It also "disables" the getTreeNodes() and generateDefs() methods of this class because they are now replaced with functionality defined in the getTreeNodes() and generateBoDefs() methods of the IGeneratesBoDefs interface.
Important

All ODAs must extend this ODA base class and provide implementations for all its methods except getVersion().

Table 97 summarizes the methods of the ODKAgentBase2 class.

Table 97.

Member methods of the ODKAgentBase2 class
Member method Description Page
getAgentProperties() Sends an array of ODA configuration properties to Business Object Wizard. getAgentProperties()
getMetaData() Sends the ODA metadata to Business Object Wizard. getMetaData()
getVersion() Retrieves the version of the ODA. getVersion()
init() Initializes the ODA. init()
terminate() Terminates the ODA, performing any required clean-up tasks. terminate()

Copyright IBM Corp. 1997, 2004