DriverShim getSubscriptionShim

Returns a reference to the subscriber object.

Syntax

Java

  public SubscriptionShim getSubscriptionShim ()
  

C++

  #include "NativeInterface.h"
  
  SubscriptionShim * METHOD_CALL getSubscriptionShim (
     void);
  

Remarks

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.

Sample Code

Java Sample Code

The following sample code from the Java skeleton driver returns a reference to the subscriber.

  public SubscriptionShim getSubscriptionShim()
  {
     tracer.trace("getSubscriptionShim");
     return subscriptionShim;
  }
  

C++ Sample Code

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;
  }