Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring EnumNameSerializer as the default serializer for Enum types #69

Open
rajivsethumadhavan opened this issue Jun 6, 2022 · 0 comments

Comments

@rajivsethumadhavan
Copy link

The Kryo library bundles with it the EnumNameSerializer that can be used as the default serializer for Enum types instead of DefaultSerializers.EnumSerializer.

The EnumNameSerializer can be configured as below -
kryo.addDefaultSerializer(Enum.class, EnumNameSerializer.class);

The EnumNameSerializer however does not have a public default constructor and i am unable to configure it declaratively using the subzero-serializers.properties. Also, it appears that the PropertyUserSerializer class supports only setting up one default serializer.

Any recommendations on how the EnumNameSerializer can configured via subzero?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant