public class CallProxy extends Object implements InvocationHandler
CallHandler| Constructor and Description |
|---|
CallProxy(ConnectionHandler connectionHandler)
Create new CallProxy with a ConnectionHandler which will
transport invocations on this Proxy
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
buildProxy(RemoteInstance remoteInstance,
ConnectionHandler connectionHandler)
Build a proxy to a {
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Delegates call to this proxy to it's ConnectionHandler
|
public CallProxy(ConnectionHandler connectionHandler)
connectionHandler - handlerpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowable - any errorpublic static Object buildProxy(RemoteInstance remoteInstance, ConnectionHandler connectionHandler) throws ClassNotFoundException
remoteInstance - remote instanceconnectionHandler - handlerClassNotFoundException - class not foundRemoteInstance}
specifing how it could be reached (i.e., through a ConnectionHandler)Copyright © 2015. All rights reserved.