Moteurs de recherche
JavaTM 2 Platform Std. Ed. v1.6.0
|Fields inherited from class java.rmi.server.RemoteObject|
Creates a new
Processes a method invocation made on the encapsulating proxy instance,
|Methods inherited from class java.rmi.server.RemoteObject|
|Methods inherited from class java.lang.Object|
public RemoteObjectInvocationHandler(RemoteRef ref)
RemoteObjectInvocationHandlerconstructed with the specified
ref- the remote ref
proxy, and returns the result.
RemoteObjectInvocationHandler implements this method
method is one of the following methods, it
is processed as described below:
Object.hashCode: Returns the hash code value for the proxy.
trueif the argument (
args) is an instance of a dynamic proxy class and this invocation handler is equal to the invocation handler of that argument, and returns
Object.toString: Returns a string representation of the proxy.
Otherwise, a remote call is made as follows:
proxyis not an instance of the interface
Remote, then an
invokemethod is invoked on this invocation handler's
args, and the method hash (defined in section 8.3 of the "Java Remote Method Invocation (RMI) Specification") for
method, and the result is returned.
RemoteRef.invokeand that exception is a checked exception that is not assignable to any exception in the
throwsclause of the method implemented by the
proxy's class, then that exception is wrapped in an
UnexpectedExceptionand the wrapped exception is thrown. Otherwise, the exception thrown by
invokeis thrown by this method.
The semantics of this method are unspecified if the arguments could not have been produced by an instance of some valid dynamic proxy class containing this invocation handler.
proxy- the proxy instance that the method was invoked on
Methodinstance corresponding to the interface method invoked on the proxy instance
args- an array of objects containing the values of the arguments passed in the method invocation on the proxy instance, or
nullif the method takes no arguments
Throwable- the exception to throw from the method invocation on the proxy instance