Driver getPublicationShim

Returns a reference to the publisher object.

Syntax

Java

  public PublicationShim getPublicationShim ()
  

C++

  #include "NativeInterface.h"
  
  PublicationShim * METHOD_CALL getPublicationShim (
     void);
  

Remarks

The DirXML engine calls the getPublicationShim method to obtain the driver's implementation of the PublicationShim interface. Typically, the object implementing PublicationShim is constructed in either the driver object constructor or the DriverShim init method.

Sample Code

Java Sample Code

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

  public PublicationShim getPublicationShim()
  {
     tracer.trace("getPublicationShim");
     return publicationShim;
  }
  

C++ Sample Code

The following sample code from the skeleton driver sends a trace message and returns a handle to the publisher.

  PublicationShim * METHOD_CALL CSkeletonDriver::getPublicationShim(void)
  
  {
     common.tracer->trace("getPublicationShim");
     return publicationShim;
  }