org.fusesource.web.console.server
Class GwtAsyncProxy
java.lang.Object
org.fusesource.web.console.server.GwtAsyncProxy
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class GwtAsyncProxy
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
Represents a dynamic proxy to some GWT RPC async interface which delegates to a synchronous implementation.
- Version:
- $Revision: 1.1 $
|
Method Summary |
java.lang.Object |
invoke(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
protected void |
invokeSyncMethod(java.lang.reflect.Method method,
java.lang.Object[] args,
com.google.gwt.user.client.rpc.AsyncCallback asyncCallback)
|
static
|
newAsyncProxy(java.lang.Class asyncInterface,
java.lang.Object syncImplementation)
Creates a new async proxy using a synchronous implementation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GwtAsyncProxy
public GwtAsyncProxy(java.lang.Object delegate)
newAsyncProxy
public static <T> T newAsyncProxy(java.lang.Class asyncInterface,
java.lang.Object syncImplementation)
- Creates a new async proxy using a synchronous implementation
invoke
public java.lang.Object invoke(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
invokeSyncMethod
protected void invokeSyncMethod(java.lang.reflect.Method method,
java.lang.Object[] args,
com.google.gwt.user.client.rpc.AsyncCallback asyncCallback)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
Copyright © 2009 FuseSource. All Rights Reserved.