DriverShim getSubscriptionShim
Returns a reference to the subscriber object.
public SubscriptionShim getSubscriptionShim ()
#include "NativeInterface.h" SubscriptionShim * METHOD_CALL getSubscriptionShim ( void);
The DirXML engine calls the getSubscriptionShim method to obtain the driver's implelemtation of the SubscriptionShim interface. Typically, the object implementing SubscriptionShim is constructed in either the Driver object constructor or the DriverShim init method.
The following sample code from the Java skeleton driver returns a reference to the subscriber.
public SubscriptionShim getSubscriptionShim() { tracer.trace("getSubscriptionShim"); return subscriptionShim; }
The following sample code from the C++ skeleton driver sends a trace message and returns a handle to the subscriber.
SubscriptionShim * METHOD_CALL CSkeletonDriver::getSubscriptionShim(void) { common.tracer->trace("getSubscriptionShim"); return subscriptionShim; }