com.jacob.com
Class DispatchProxy

java.lang.Object
  extended by com.jacob.com.JacobObject
      extended by com.jacob.com.DispatchProxy

public class DispatchProxy
extends JacobObject

If you need to pass a COM Dispatch object between STA threads, you have to marshall the interface. This class is used as follows: the STA that creates the Dispatch object must construct an instance of this class. Another thread can then call toDispatch() on that instance and get a Dispatch pointer which has been marshalled. WARNING: You can only call toDispatch() once! If you need to call it multiple times (or from multiple threads) you need to construct a separate DispatchProxy instance for each such case!


Field Summary
 int m_pStream
           
 
Constructor Summary
DispatchProxy(Dispatch localDispatch)
           
 
Method Summary
 void finalize()
           
 void release()
           
 Dispatch toDispatch()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_pStream

public int m_pStream
Constructor Detail

DispatchProxy

public DispatchProxy(Dispatch localDispatch)
Method Detail

toDispatch

public Dispatch toDispatch()

release

public void release()
Overrides:
release in class JacobObject

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object