Methods provided by an adapter

Various methods must be provided by an adapter.

The following types of methods must be provided by an adapter. Some of these methods are mandatory, while others are optional.
  • Library initialization and termination methods
  • Adapter instance creation and destruction
  • Connection instance creation and destruction
  • Source/target interface
  • Property interface
  • Connection interface
  • Listener interface
To see if the adapter method is required or optional, see the following table.
Method Required (Yes/No)
InitializeLibrary N
DestroyLibrary N
CreateAdapterInstance Y
DestroyAdapterInstance Y
CreateConnectionInstance Y
DestroyConnectionInstance Y
CombinedListen N3
Connect Y
Disconnect Y
Get N1
Put N1
OnNotify N1
BeginTransaction N2
EndTransaction N2
Listen N3
ValidateProperties Y
CompareConnection Y
ValidateConnection N
CompareWatches N3,4
1234
1 Some adapters do not support both Source and Target interfaces, and therefore might only provide a Get or Put method.
2 This method is not required if the resource is non-transactional.
3 This method is required for only those adapters that support the Listen interface.
4 CompareWatches is required only if CombinedListen is provided by the adapter. If Listen is provided, CompareWatches is not needed.