com.moesol.bindings.platform_sdk.component_services
Class ComDelegatingSink

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

public class ComDelegatingSink
extends ComDispatchSink

Delegate native IDispatch::Invoke calls to a pure java implementation of a dispatch based event sink.


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
ComDelegatingSink(GUID diid, IUnknown javaSink)
           
 
Method Summary
 int Invoke(int dispIdMember, GUID riid, long lcid, int flags, Object[] dispParams, Object[] varResult, long[] argErr)
          Called when a native client uses IDispatch::Invoke.
static int Invoke(IUnknown javaSink, int dispIdMember, GUID riid, long lcid, int flags, Object[] dispParams, Object[] varResult, long[] argErr)
          Helper method that tries to call a method on the javaSink based on the call information passed.
 
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

ComDelegatingSink

public ComDelegatingSink(GUID diid,
                         IUnknown javaSink)
Method Detail

Invoke

public 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.

Specified by:
Invoke in class ComDispatchSink
Returns:
HRESULT

Invoke

public static int Invoke(IUnknown javaSink,
                         int dispIdMember,
                         GUID riid,
                         long lcid,
                         int flags,
                         Object[] dispParams,
                         Object[] varResult,
                         long[] argErr)
Helper method that tries to call a method on the javaSink based on the call information passed.

Parameters:
javaSink -
dispIdMember -
riid -
lcid -
flags -
dispParams -
varResult -
argErr -
Returns:
HRESULT


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