Creates a new instance.
Creates a new instance for a map entry.
Gets the wrapped object which should be serialized during RMI transfer.
Reads the wrapped object from the RMI object input stream.
Resolves the wrapped object during deserialization.
Writes the wrapped object to the RMI object output stream.
Users shouldn't instantiate this class manually, but leave that to the RMI runtime.
If RMIWrapper.resolveWrapped() returned
this then this method will be called when the wrapper instance
is serialized to an other endpoint. It is preferred to return a remote proxy to the previously wrapped object to
pass back to the original endpoint when reverse request is made. Returning
this from this method
will result in the serialization of this wrapper through RMI.
The result of this method will be returned to the caller, or used during the RMI request.
Important aspect of writing objects using wrappers is that in this method if any of the object writing method is called, then the non customizable aspects of the serializable will not be applied to the object that is being wrapped.
E.g. If an RMIWrapper is defined for an object type T, then calling