The caller of the methods is responsible for correct initialization of the COM runtime and appropriate thread-handling - depending on the choosen handling model.
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectFactory | |
| private final IDispatch | |
| private final Class | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IComEventCallbackCookie | advise(Class<?>
- the COM interface that the listener will receive events from comEventCallbackInterface, final IComEventCallbackListener - and object that will receive the callback events comEventCallbackListener)Implements com. |
| public synchronized void | |
| public boolean | equals(Object
the reference object with which to compare. arg)Overrides java. |
| private ConnectionPoint | |
| protected void | finalize()
Overrides java. |
| private String | |
| private Guid. | |
| private String | |
| private String | |
| public <T> T | getProperty(Class<T> returnType, String name, Object... args)
Implements com. |
| public <T> T | getProperty(Class<T> returnType, OaIdl.
Implements com. |
| public IDispatch | |
| private long | |
| public int | |
| public Object | invoke(final Object
the proxy instance that the method was invoked on proxy, final Method the method, final Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. |
| public <T> T | invokeMethod(Class<T> returnType, String name, Object... args)
Implements com. |
| public <T> T | invokeMethod(Class<T> returnType, OaIdl.
Implements com. |
| protected WinNT. | |
| protected WinNT. | |
| protected WinNT. | |
| protected WinNT. | |
| protected WinNT. | |
| protected WinNT. | |
| protected WinNT. | |
| protected WinNT. | |
| protected WinNT. | |
| protected WinNT. | |
| protected WinNT. | |
| protected WinNT. | |
| public <T> T | queryInterface(Class<T> comInterface)
Implements com. |
| protected OaIdl. | |
| protected OaIdl. | |
| public <T> void | setProperty(String name, T value)
Implements com. |
| public <T> void | setProperty(OaIdl.
Implements com. |
| private void | setProperty(String name, Object... args)
Implements com. |
| private void | setProperty(OaIdl.
Implements com. |
| public String | |
| public void | unadvise(Class<?>
- the interface that is being listened to comEventCallbackInterface, final IComEventCallbackCookie - the cookie that was returned when advise was called cookie)Implements com. |
| private Object[] |
| factory | back to summary |
|---|---|
| private final ObjectFactory factory | |
| rawDispatch | back to summary |
|---|---|
| private final IDispatch rawDispatch | |
| theInterface | back to summary |
|---|---|
| private final Class<?> theInterface | |
| unknownId | back to summary |
|---|---|
| private long unknownId | |
| ProxyObject | back to summary |
|---|---|
public ProxyObject(Class<?> theInterface, IDispatch rawDispatch, ObjectFactory factory)
| |
| advise | back to summary |
|---|---|
| public IComEventCallbackCookie advise(Class<?> comEventCallbackInterface, final IComEventCallbackListener comEventCallbackListener) throws COMException Implements com. Doc from com. Set up the comEventCallbackListener to receive callback events from the target COM object
| |
| dispose | back to summary |
|---|---|
| public synchronized void dispose() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object arg) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fetchRawConnectionPoint | back to summary |
|---|---|
| private ConnectionPoint fetchRawConnectionPoint(Guid. | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| getAccessorName | back to summary |
|---|---|
| private String getAccessorName(Method method, ComProperty prop) | |
| getIID | back to summary |
|---|---|
| private Guid. | |
| getMethodName | back to summary |
|---|---|
| private String getMethodName(Method method, ComMethod meth) | |
| getMutatorName | back to summary |
|---|---|
| private String getMutatorName(Method method, ComProperty prop) | |
| getProperty | back to summary |
|---|---|
| public <T> T getProperty(Class<T> returnType, String name, Object... args) Implements com.
| |
| getProperty | back to summary |
|---|---|
| public <T> T getProperty(Class<T> returnType, OaIdl. Implements com.
| |
| getRawDispatch | back to summary |
|---|---|
| public IDispatch getRawDispatch() Implements com.
| |
| getUnknownId | back to summary |
|---|---|
| private long getUnknownId() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| invoke | back to summary |
|---|---|
| public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
| |
| invokeMethod | back to summary |
|---|---|
| public <T> T invokeMethod(Class<T> returnType, String name, Object... args) Implements com.
| |
| invokeMethod | back to summary |
|---|---|
| public <T> T invokeMethod(Class<T> returnType, OaIdl. Implements com.
| |
| oleMethod | back to summary |
|---|---|
| protected WinNT. | |
| oleMethod | back to summary |
|---|---|
| protected WinNT. | |
| oleMethod | back to summary |
|---|---|
| protected WinNT. | |
| oleMethod | back to summary |
|---|---|
| protected WinNT. | |
| oleMethod | back to summary |
|---|---|
| protected WinNT. | |
| oleMethod | back to summary |
|---|---|
protected WinNT.
| |
| oleMethod | back to summary |
|---|---|
| protected WinNT. Deprecated
| |
| oleMethod | back to summary |
|---|---|
| protected WinNT. Deprecated
| |
| oleMethod | back to summary |
|---|---|
| protected WinNT. Deprecated
| |
| oleMethod | back to summary |
|---|---|
| protected WinNT. Deprecated
| |
| oleMethod | back to summary |
|---|---|
| protected WinNT. Deprecated
| |
| oleMethod | back to summary |
|---|---|
| protected WinNT. Deprecated
| |
| queryInterface | back to summary |
|---|---|
| public <T> T queryInterface(Class<T> comInterface) throws COMException Implements com. Doc from com. 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.
| |
| resolveDispId | back to summary |
|---|---|
protected OaIdl.
| |
| resolveDispId | back to summary |
|---|---|
| protected OaIdl. Deprecated
| |
| setProperty | back to summary |
|---|---|
| public <T> void setProperty(String name, T value) Implements com.
| |
| setProperty | back to summary |
|---|---|
| public <T> void setProperty(OaIdl. Implements com.
| |
| setProperty | back to summary |
|---|---|
| private void setProperty(String name, Object... args) Implements com. | |
| setProperty | back to summary |
|---|---|
| private void setProperty(OaIdl. Implements com. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unadvise | back to summary |
|---|---|
| public void unadvise(Class<?> comEventCallbackInterface, final IComEventCallbackCookie cookie) throws COMException Implements com. Doc from com. Stop listening for callback events
| |
| unfoldWhenVarargs | back to summary |
|---|---|
| private Object[] unfoldWhenVarargs(Method method, Object[] argParams) | |