Class SimpleSerializers

  • All Implemented Interfaces:
    Serializers, Serializable

    public class SimpleSerializers
    extends Serializers.Base
    implements Serializable
    Simple implementation Serializers which allows registration of serializers based on raw (type erased class). It can work well for basic bean and scalar type serializers, but is not a good fit for handling generic types (like Maps and Collections).

    Type registrations are assumed to be general; meaning that registration of serializer for a super type will also be used for handling subtypes, unless an exact match is found first. As an example, handler for CharSequence would also be used serializing StringBuilder instances, unless a direct mapping was found.

    See Also:
    Serialized Form