Klasse ObjectFactory
java.lang.Object
com.sun.jna.platform.win32.COM.util.ObjectFactory
- Bekannte direkte Unterklassen:
Factory
Factory keeps track of COM objects - all objects created with this factory
can be disposed by calling
disposeAll()
.-
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) void
<T> T
fetchObject
(Class<T> comInterface) Gets and existing COM object (GetActiveObject) for the given progId and returns a ProxyObject for the given interface.protected void
finalize()
getLCID()
Retrieve the LCID to be used for COM calls.CoInitialize must be called be fore this method.void
register
(ProxyObject proxyObject) void
setLCID
(WinDef.LCID value) Set the LCID to use for COM calls.void
unregister
(ProxyObject proxyObject)
-
Konstruktordetails
-
ObjectFactory
public ObjectFactory()
-
-
Methodendetails
-
finalize
-
getRunningObjectTable
CoInitialize must be called be fore this method. Either explicitly or implicitly via other methods.- Gibt zurück:
- running object table
-
createProxy
Creates a ProxyObject for the given interface and IDispatch pointer. -
createObject
Creates a new COM object (CoCreateInstance) for the given progId and returns a ProxyObject for the given interface. -
fetchObject
Gets and existing COM object (GetActiveObject) for the given progId and returns a ProxyObject for the given interface.- Löst aus:
COMException
-
discoverClsId
-
createDispatchCallback
IDispatchCallback createDispatchCallback(Class<?> comEventCallbackInterface, IComEventCallbackListener comEventCallbackListener) -
register
-
unregister
-
disposeAll
public void disposeAll() -
getLCID
Retrieve the LCID to be used for COM calls.- Gibt zurück:
- If
setLCID
is not called retrieves the users default locale, else the set LCID.
-
setLCID
Set the LCID to use for COM calls.- Parameter:
value
- override LCID. NULL resets to default.
-