|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jacob.com.JacobObject
com.jacob.com.DispatchProxy
public class DispatchProxy
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 |
---|
public int m_pStream
Constructor Detail |
---|
public DispatchProxy(Dispatch localDispatch)
Method Detail |
---|
public Dispatch toDispatch()
public void release()
release
in class JacobObject
public void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |