java.rmi.server
public class RemoteObjectInvocationHandler extends RemoteObject implements InvocationHandler, Remote, Serializable
See Also: Registry
Constructor Summary | |
---|---|
RemoteObjectInvocationHandler(RemoteRef reference)
Construct the remote invocation handler that forwards calls to the given
remote object.
|
Method Summary | |
---|---|
Object | invoke(Object proxyInstance, Method method, Object[] parameters)
Invoke the remote method. |
Parameters: reference the reference to the remote object where the method calls should be forwarded.
Parameters: proxyInstance the instance of the proxy stub method the method being invoked parameters the method parameters
Returns: the method return value, returned by RemoteRef.invoke
Throws: IllegalAccessException
if the passed proxy instance does not implement Remote interface. UnexpectedException
if remote call throws some exception, not listed in the
throws
clause of the method being called. Throwable
that is thrown by remote call, if that exception is listend in
the throws
clause of the method being called.