public class RemoteObjectInvocationHandler extends RemoteObject implements java.lang.reflect.InvocationHandler, java.rmi.Remote, java.io.Serializable
Registry or UnicastRemoteObject methods if the remote
reference is known but the corresponding stub class is not accessible.Registry.lookup(java.lang.String),
Serialized Formref| Constructor and Description |
|---|
RemoteObjectInvocationHandler(RemoteRef reference)
Construct the remote invocation handler that forwards calls to the given
remote object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(java.lang.Object proxyInstance,
java.lang.reflect.Method method,
java.lang.Object[] parameters)
Invoke the remote method.
|
public RemoteObjectInvocationHandler(RemoteRef reference)
reference - the reference to the remote object where the method
calls should be forwarded.public java.lang.Object invoke(java.lang.Object proxyInstance, java.lang.reflect.Method method, java.lang.Object[] parameters) throws java.lang.Throwable
RemoteRef.invoke(Remote, Method, Object[], long) of the
remote reference that was passed in constructor. The methods are handled as
following:
invoke in interface java.lang.reflect.InvocationHandlerproxyInstance - the instance of the proxy stubmethod - the method being invokedparameters - the method parametersjava.lang.IllegalAccessException - if the passed proxy instance does not implement Remote interface.java.rmi.UnexpectedException - if remote call throws some exception, not listed in the
throws clause of the method being called.java.lang.Throwable - that is thrown by remote call, if that exception is listend in
the throws clause of the method being called.Proxy,
UndeclaredThrowableException