Class Converters


  • public final class Converters
    extends java.lang.Object
    The custom Serializer for serializing and deserializing the registry information from and to the eureka server.

    The Serializer used here is an Xstream serializer which uses the JSON format and custom fields.The XStream deserialization does not handle removal of fields and hence this custom mechanism. Since then Auto annotation introduced handles any fields that does not exist gracefully and is the recommended mechanism. If the user wishes to override the whole XStream serialization/deserialization mechanism with their own alternatives they can do so my implementing their own providers in EntityBodyConverter.