com.moesol.bindings.platform_sdk.component_services
Class ComDispatchSink

java.lang.Object
  extended by com.moesol.bindings.platform_sdk.component_services.ComObject
      extended by com.moesol.bindings.platform_sdk.component_services.ComDispatchSink
All Implemented Interfaces:
IDispatch, IUnknown
Direct Known Subclasses:
ComDelegatingSink

public abstract class ComDispatchSink
extends ComObject
implements IDispatch

Provides a simple implementation of IDispatch that can be used to send all IDispatch::Invoke calls to a subclass implementation of Invoke. Responds with S_OK when QueryInterface is called for diid.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.moesol.bindings.platform_sdk.component_services.IDispatch
IDispatch.Disp, IDispatch.Jni
 
Field Summary
 
Fields inherited from class com.moesol.bindings.platform_sdk.component_services.ComObject
m_iunknown_support
 
Fields inherited from interface com.moesol.bindings.platform_sdk.component_services.IDispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, IID, TYPELIB
 
Constructor Summary
ComDispatchSink(GUID diid)
           
 
Method Summary
abstract  int Invoke(int dispIdMember, GUID riid, long lcid, int flags, Object[] dispParams, Object[] varResult, long[] argErr)
          Called when a native client uses IDispatch::Invoke.
 
Methods inherited from class com.moesol.bindings.platform_sdk.component_services.ComObject
FinalConstruct, FinalRelease, QueryInterface, QueryInterface, QueryInterface, Release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.moesol.bindings.platform_sdk.component_services.IUnknown
QueryInterface, QueryInterface, Release
 

Constructor Detail

ComDispatchSink

public ComDispatchSink(GUID diid)
Method Detail

Invoke

public abstract int Invoke(int dispIdMember,
                           GUID riid,
                           long lcid,
                           int flags,
                           Object[] dispParams,
                           Object[] varResult,
                           long[] argErr)
Description copied from class: ComObject
Called when a native client uses IDispatch::Invoke. The default implementation tries to route the call to the correct interface/method. You can override this method if you want to dispatch calls based on their dispIdMember.

Overrides:
Invoke in class ComObject
Returns:
HRESULT


Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.