Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用标准 Java 序列化时,可以通过根据Serializable接口创建Object writeReplace()将在序列化期间调用的方法,在流中动态替换对象。
Serializable
Object writeReplace()
我的问题很简单:Corba Java 实现中是否有此构造的等价物?
据我所知,Corba 规范中甚至没有这样的东西,更不用说 Java 实现了。
您可以writeReplace正常使用 RMI-IIOP(Java RMI over CORBA/IIOP)。ORB 呈现 Serializable/Externalizable(具有所有相关特性)的“标准”Java 序列化并将它们编组为“自定义编组”值。
writeReplace