Skip to content

Configuring EnumNameSerializer as the default serializer for Enum types #69

Description

@rajivsethumadhavan

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions