Klasse Factory
java.lang.Object
com.sun.jna.platform.win32.COM.util.ObjectFactory
com.sun.jna.platform.win32.COM.util.Factory
Factory is intended as a simpler to use version of ObjectFactory.
The Factory abstracts the necessity to handle COM threading by introducing a dispatching thread, that is correctly COM initialized and is used to handle all outgoing calls.
NOTE: Remember to call factory.getComThread().terminate() at some appropriate point, when the factory is not used anymore
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) IDispatchCallback
createDispatchCallback
(Class<?> comEventCallbackInterface, IComEventCallbackListener comEventCallbackListener) <T> T
createObject
(Class<T> comInterface) Creates a new COM object (CoCreateInstance) for the given progId and returns a ProxyObject for the given interface.<T> T
createProxy
(Class<T> comInterface, IDispatch dispatch) Creates a ProxyObject for the given interface and IDispatch pointer.(Package privat) Guid.GUID
discoverClsId
(ComObject annotation) <T> T
fetchObject
(Class<T> comInterface) Gets and existing COM object (GetActiveObject) for the given progId and returns a ProxyObject for the given interface.CoInitialize must be called be fore this method.Von Klasse geerbte Methoden com.sun.jna.platform.win32.COM.util.ObjectFactory
disposeAll, finalize, getLCID, register, setLCID, unregister
-
Konstruktordetails
-
Factory
public Factory() -
Factory
-
-
Methodendetails
-
createProxy
Beschreibung aus Klasse kopiert:ObjectFactory
Creates a ProxyObject for the given interface and IDispatch pointer.- Setzt außer Kraft:
createProxy
in KlasseObjectFactory
-
discoverClsId
- Setzt außer Kraft:
discoverClsId
in KlasseObjectFactory
-
fetchObject
Beschreibung aus Klasse kopiert:ObjectFactory
Gets and existing COM object (GetActiveObject) for the given progId and returns a ProxyObject for the given interface.- Setzt außer Kraft:
fetchObject
in KlasseObjectFactory
- Löst aus:
COMException
-
createObject
Beschreibung aus Klasse kopiert:ObjectFactory
Creates a new COM object (CoCreateInstance) for the given progId and returns a ProxyObject for the given interface.- Setzt außer Kraft:
createObject
in KlasseObjectFactory
-
createDispatchCallback
IDispatchCallback createDispatchCallback(Class<?> comEventCallbackInterface, IComEventCallbackListener comEventCallbackListener) - Setzt außer Kraft:
createDispatchCallback
in KlasseObjectFactory
-
getRunningObjectTable
Beschreibung aus Klasse kopiert:ObjectFactory
CoInitialize must be called be fore this method. Either explicitly or implicitly via other methods.- Setzt außer Kraft:
getRunningObjectTable
in KlasseObjectFactory
- Gibt zurück:
- running object table
-
getComThread
-