You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/12/27 14:15:58 UTC

[GitHub] [ignite-3] rpuch commented on a change in pull request #526: IGNITE-16185 Improve the interface of UserObjectMarshaller

rpuch commented on a change in pull request #526:
URL: https://github.com/apache/ignite-3/pull/526#discussion_r775516228



##########
File path: modules/network/src/main/java/org/apache/ignite/internal/network/serialization/ClassDescriptor.java
##########
@@ -211,6 +215,37 @@ public boolean supportsWriteReplace() {
         return (isSerializable() || isExternalizable()) && hasWriteReplace();
     }
 
+    /**
+     * Applies writeReplace() method.
+     *
+     * @param object     object to which to apply
+     * @return writeReplace() result
+     * @throws SpecialMethodInvocationException if writeReplace() invocation fails
+     */
+    public Object applyWriteReplace(Object object) throws SpecialMethodInvocationException {

Review comment:
       Moved this functionality out of `ClassDescriptor`; instead, `ClassDescriptor` returns an instance of `SpecialSerializationMethods` that can be used to actually apply the methods.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org