fury icon indicating copy to clipboard operation
fury copied to clipboard

feat(java): custom class info serializer

Open mattjubb opened this issue 2 months ago • 0 comments

Why?

In my project we have 1000s of classes that are serialized, we have a custom mechanism for registering those class using a UUID which provides a way to lookup those classes at runtime. It would be useful to be able to hook up this mechanism to the fory serializer. This is my first time trying to contribute to open source project so appreciate any guidance

What does this PR do?

This PR adds a new interface ClassInfoSerializer which can be implemented to specify a custom way to serialize a class ID instead of the default short id. this can be set on the ClassResolver via setClassInfoSerializer

Does this PR introduce any user-facing change?

Yes introduces new interface - ClassInfoSerializer and ClassResolver.setClassInfoSerializer method

-->

  • [x] Does this PR introduce any public API change?
  • [x] Does this PR introduce any binary protocol compatibility change? - yes if custom class info serializer is set, otherwise no

Benchmark

not performed yet

mattjubb avatar Oct 05 '25 01:10 mattjubb