Klasse ProxyObject
java.lang.Object
com.sun.jna.platform.win32.COM.util.ProxyObject
- Alle implementierten Schnittstellen:
IConnectionPoint
,IDispatch
,IRawDispatchHandle
,IUnknown
,InvocationHandler
public class ProxyObject
extends Object
implements InvocationHandler, IDispatch, IRawDispatchHandle, IConnectionPoint
This object acts as the invocation handler for interfaces annotated with
ComInterface. It wraps all (necessary) low level COM calls and dispatches
them through the COM runtime.
The caller of the methods is responsible for correct initialization of the COM runtime and appropriate thread-handling - depending on the choosen handling model.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungProxyObject
(Class<?> theInterface, IDispatch rawDispatch, ObjectFactory factory) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungadvise
(Class<?> comEventCallbackInterface, IComEventCallbackListener comEventCallbackListener) Set up the comEventCallbackListener to receive callback events from the target COM objectvoid
dispose()
boolean
protected void
finalize()
<T> T
getProperty
(Class<T> returnType, OaIdl.DISPID dispID, Object... args) <T> T
getProperty
(Class<T> returnType, String name, Object... args) int
hashCode()
<T> T
invokeMethod
(Class<T> returnType, OaIdl.DISPID dispID, Object... args) <T> T
invokeMethod
(Class<T> returnType, String name, Object... args) protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId) Veraltet.protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId, Variant.VARIANT pArg) Veraltet.protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId, Variant.VARIANT[] pArgs) Veraltet.protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name) Veraltet.protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name, Variant.VARIANT pArg) Veraltet.protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name, Variant.VARIANT[] pArgs) Veraltet.protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId) protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId, Variant.VARIANT pArg) protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId, Variant.VARIANT[] pArgs) protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, String name) protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, String name, Variant.VARIANT pArg) protected WinNT.HRESULT
oleMethod
(int nType, Variant.VARIANT.ByReference pvResult, String name, Variant.VARIANT[] pArgs) <T> T
queryInterface
(Class<T> comInterface) Returns a proxy object for the given interface.protected OaIdl.DISPID
resolveDispId
(IDispatch pDisp, String name) Veraltet.protected OaIdl.DISPID
resolveDispId
(String name) <T> void
setProperty
(OaIdl.DISPID dispId, T value) <T> void
setProperty
(String name, T value) toString()
void
unadvise
(Class<?> comEventCallbackInterface, IComEventCallbackCookie cookie) Stop listening for callback events
-
Konstruktordetails
-
ProxyObject
-
-
Methodendetails
-
finalize
-
dispose
public void dispose() -
getRawDispatch
- Angegeben von:
getRawDispatch
in SchnittstelleIRawDispatchHandle
-
equals
-
hashCode
public int hashCode() -
toString
-
invoke
- Angegeben von:
invoke
in SchnittstelleInvocationHandler
- Löst aus:
Throwable
-
advise
public IComEventCallbackCookie advise(Class<?> comEventCallbackInterface, IComEventCallbackListener comEventCallbackListener) throws COMException Beschreibung aus Schnittstelle kopiert:IConnectionPoint
Set up the comEventCallbackListener to receive callback events from the target COM object- Angegeben von:
advise
in SchnittstelleIConnectionPoint
- Parameter:
comEventCallbackInterface
- - the COM interface that the listener will receive events fromcomEventCallbackListener
- - and object that will receive the callback events- Gibt zurück:
- - a cookie that can be used to detach (unadvise) the event callback listener throws COMException if an error occurs trying to set up the listener on the target COM object, see exception cause for details.
- Löst aus:
COMException
-
unadvise
public void unadvise(Class<?> comEventCallbackInterface, IComEventCallbackCookie cookie) throws COMException Beschreibung aus Schnittstelle kopiert:IConnectionPoint
Stop listening for callback events- Angegeben von:
unadvise
in SchnittstelleIConnectionPoint
- Parameter:
comEventCallbackInterface
- - the interface that is being listened tocookie
- - the cookie that was returned when advise was called- Löst aus:
COMException
-
setProperty
- Angegeben von:
setProperty
in SchnittstelleIDispatch
-
setProperty
- Angegeben von:
setProperty
in SchnittstelleIDispatch
-
getProperty
- Angegeben von:
getProperty
in SchnittstelleIDispatch
-
getProperty
- Angegeben von:
getProperty
in SchnittstelleIDispatch
-
invokeMethod
- Angegeben von:
invokeMethod
in SchnittstelleIDispatch
-
invokeMethod
- Angegeben von:
invokeMethod
in SchnittstelleIDispatch
-
queryInterface
Beschreibung aus Schnittstelle kopiert:IUnknown
Returns a proxy object for the given interface. Assuming that the interface is annotated with a ComInterface annotation that provides a valid iid.Will throw COMException if an error occurs trying to retrieve the requested interface, see exception cause for details.
- Angegeben von:
queryInterface
in SchnittstelleIUnknown
- Löst aus:
COMException
-
resolveDispId
-
oleMethod
protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, String name, Variant.VARIANT pArg) throws COMException - Löst aus:
COMException
-
oleMethod
protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId, Variant.VARIANT pArg) throws COMException - Löst aus:
COMException
-
oleMethod
protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, String name) throws COMException - Löst aus:
COMException
-
oleMethod
protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId) throws COMException - Löst aus:
COMException
-
oleMethod
protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, String name, Variant.VARIANT[] pArgs) throws COMException - Löst aus:
COMException
-
oleMethod
protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId, Variant.VARIANT[] pArgs) throws COMException - Löst aus:
COMException
-
resolveDispId
Veraltet. -
oleMethod
@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name, Variant.VARIANT pArg) throws COMException Veraltet.- Löst aus:
COMException
-
oleMethod
@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId, Variant.VARIANT pArg) throws COMException Veraltet.- Löst aus:
COMException
-
oleMethod
@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name) throws COMException Veraltet.- Löst aus:
COMException
-
oleMethod
@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId) throws COMException Veraltet.- Löst aus:
COMException
-
oleMethod
@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name, Variant.VARIANT[] pArgs) throws COMException Veraltet.- Löst aus:
COMException
-
oleMethod
@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId, Variant.VARIANT[] pArgs) throws COMException Veraltet.- Löst aus:
COMException
-