Typical serialized proxy names: /test.ser /objects/test.ser
Typical unserialized proxy names: Test classes/Test
|Constructor and Description|
The constructor creates a small wrapper object referencing a proxy object solely by name, but not loading its object into the server's VM runtime.
|Modifier and Type||Method and Description|
This function may be called reentrantly, so the inner object must synchronise its critical sections as necessary.
This method is used to identify the contents of the ProxyLoader.
public ProxyLoader(String handle)
handle- The path of either the proxy class file, or the file containing serialized instance of the proxy, to be found inside the proxy's codebase jar file.
ItemServer, to provide a remote reference to itself, for proxy callbacks. The second invocation is by the client, to provide a remoted reference to the ProxyLoader, to allow the proxy a handle on which to receive asynchronous callbacks. At this point the ProxyLoader will reconstitute the proxy object, and pass it the two previous arguments, respectively. All subsequent invocations are routed directly to the created proxy itself.
method- The method to invoke on the internal object.
args- The arguments to provide to the method for its invocation. It can be a single object, an array of objects, or null.
RemoteException- For network communication related reasons.
NoSuchMethodException- If no matching method can be found.
Exception- If the internal object rejects the request, for any application specific reason.
public String toString()
Copyright © 2016. All Rights Reserved.