| com.google.gwt.dev.shell.ie.IDispatchImpl com.google.gwt.dev.shell.ie.IDispatchProxy
IDispatchProxy | class IDispatchProxy extends IDispatchImpl (Code) | | Wraps an arbitrary Java Object as an Automation-compatible server. The class
was motivated by the need to expose Java objects into JavaScript.
Features
- Implements the
IDispatch interface for you
- If the COM client keeps a reference to this object, this object is
prevented from being garbage collected
- Manages a JNI global ref on the target object so that it can be
reliabily passed back and forth between Java and external code
- An instance of this class with no target is used to globally access all
static methods or fields.
Limitations
|
Method Summary | |
public void | dispose() Must be called when the object is no longer needed (to release the global
reference on the target object). | protected void | getIDsOfNames(String[] names, int[] ids) | public Object | getTarget() | protected Variant | invoke(int dispId, int flags, Variant[] params) | public boolean | isDisposed() Determine whether the proxy has already been disposed (this shouldn't be
necessary, but is needed by ModuleSpaceIE6 to workaround a bug in IE). |
DISPID_MAGIC_GETGLOBALREF | final public static int DISPID_MAGIC_GETGLOBALREF(Code) | | |
IDispatchProxy | IDispatchProxy(CompilingClassLoader cl)(Code) | | This constructor initializes as the static dispatcher, which handles only
static method calls and field references.
Parameters: cl - this class's classLoader |
IDispatchProxy | IDispatchProxy(CompilingClassLoader cl, Object target)(Code) | | This constructor initializes a dispatcher, around a particular instance.
Parameters: cl - this class's classLoader Parameters: target - the object being wrapped as an IDispatch |
dispose | public void dispose()(Code) | | Must be called when the object is no longer needed (to release the global
reference on the target object).
|
getIDsOfNames | protected void getIDsOfNames(String[] names, int[] ids) throws HResultException(Code) | | |
isDisposed | public boolean isDisposed()(Code) | | Determine whether the proxy has already been disposed (this shouldn't be
necessary, but is needed by ModuleSpaceIE6 to workaround a bug in IE).
|
Fields inherited from com.google.gwt.dev.shell.ie.IDispatchImpl | final protected static int DISP_E_UNKNOWNNAME(Code)(Java Doc) protected int refCount(Code)(Java Doc)
|
|
|