fury
fury copied to clipboard
feat(java): custom class info serializer
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