- , , .
- , , . - , , - . - Externalizable Classloader.defineClass JVM, ( ). , , , ..
If you need to call interface-specific methods directly on the object transferred from the client, make the proxy interface implement its interface and use the dynamic proxy server template for the proxy object (java.lang.reflect.Proxy / InvocationHandler) to transfer calls to the proxy an object of a previously unknown class.
It is rather complicated, but can be done so, I think.
source
share