public class ObjectFactory
extends java.lang.Object
disposeAll()
.Constructor and Description |
---|
ObjectFactory() |
Modifier and Type | Method and Description |
---|---|
(package private) IDispatchCallback |
createDispatchCallback(java.lang.Class<?> comEventCallbackInterface,
IComEventCallbackListener comEventCallbackListener) |
<T> T |
createObject(java.lang.Class<T> comInterface)
Creates a new COM object (CoCreateInstance) for the given progId and
returns a ProxyObject for the given interface.
|
<T> T |
createProxy(java.lang.Class<T> comInterface,
IDispatch dispatch)
Creates a ProxyObject for the given interface and IDispatch pointer.
|
(package private) Guid.GUID |
discoverClsId(ComObject annotation) |
void |
disposeAll() |
<T> T |
fetchObject(java.lang.Class<T> comInterface)
Gets and existing COM object (GetActiveObject) for the given progId and
returns a ProxyObject for the given interface.
|
protected void |
finalize() |
WinDef.LCID |
getLCID()
Retrieve the LCID to be used for COM calls.
|
IRunningObjectTable |
getRunningObjectTable()
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) |
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public IRunningObjectTable getRunningObjectTable()
public <T> T createProxy(java.lang.Class<T> comInterface, IDispatch dispatch)
public <T> T createObject(java.lang.Class<T> comInterface)
public <T> T fetchObject(java.lang.Class<T> comInterface) throws COMException
COMException
IDispatchCallback createDispatchCallback(java.lang.Class<?> comEventCallbackInterface, IComEventCallbackListener comEventCallbackListener)
public void register(ProxyObject proxyObject)
public void unregister(ProxyObject proxyObject)
public void disposeAll()
public WinDef.LCID getLCID()
setLCID
is not called retrieves the users default
locale, else the set LCID.public void setLCID(WinDef.LCID value)
value
- override LCID. NULL resets to default.