org.jinterop.dcom.core
Interface IJIUnknown

All Known Subinterfaces:
IJIComObject, IJIDispatch, IJIMoniker, IJIOleClientSite, IJIOleContainer, IJIOleDocumentSite, IJIOleDocumentView, IJIOleInPlaceActiveObject, IJIOleInPlaceFrame, IJIOleInPlaceSite, IJIOleInPlaceUIWindow, IJIOleObject, IJIOleWindow, IJIStream, IJITypeInfo, IJITypeLib
All Known Implementing Classes:
JIOleFrame

public interface IJIUnknown

Base interface for all COM components.
An Example:-

JISession session = JISession.createSession("DOMAIN","USERNAME","PASSWORD");
JIComServer stub = new JIComServer(JIProgId.valueOf(session,"TestCOM123.TestServer2"),address,session);

IJIComObject comObject = stub.createInstance();
IJIUnknown handle = comObject.queryInterface("620012E2-69E3-4DC0-B553-AE252524D2F6");

Since:
1.0

Field Summary
static java.lang.String IID
          IID representing the IUnknown
 
Method Summary
 void addRef()
          Increases the reference count on the actual COM server by 5 (currently hardcoded).
 IJIUnknown queryInterface(java.lang.String iid)
          Used to retrieve interface pointers based on iid.
 void release()
           Decreases the reference count on the actual COM server by 5 (currently hardcoded).
 

Field Detail

IID

static final java.lang.String IID
IID representing the IUnknown

See Also:
Constant Field Values
Method Detail

queryInterface

IJIUnknown queryInterface(java.lang.String iid)
                          throws JIException
Used to retrieve interface pointers based on iid.

Parameters:
iid - String representation of the IID (clsid).
Returns:
reference to the requested unknown.
Throws:
JIException

addRef

void addRef()
            throws JIException

Increases the reference count on the actual COM server by 5 (currently hardcoded). The developer should refrain from calling this API, as referencing is maintained internally by the system. If the release is not called in conjunction with addRef then the COM Instance will not get garbage collected at the server.

Throws:
JIException

release

void release()
             throws JIException

Decreases the reference count on the actual COM server by 5 (currently hardcoded). The developer should refrain from calling this API, as referencing is maintained internally by the system. If the release is not called in conjunction with addRef then the COM Instance will not get garbage collected at the server.

Throws:
JIException