public final class Converters
extends java.lang.Object
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
.
Modifier and Type | Class and Description |
---|---|
static class |
Converters.ApplicationConverter
Serialize/deserialize
Applications object types. |
static class |
Converters.ApplicationsConverter
Serialize/deserialize
Applications object types. |
static class |
Converters.DataCenterInfoConverter
Serialize/deserialize
DataCenterInfo object types. |
static class |
Converters.InstanceInfoConverter
Serialize/deserialize
InstanceInfo object types. |
static class |
Converters.LeaseInfoConverter
Serialize/deserialize
LeaseInfo object types. |
static class |
Converters.MetadataConverter
Serialize/deserialize application metadata.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NODE_APP |
static java.lang.String |
NODE_DATACENTER |
static java.lang.String |
NODE_INSTANCE |
static java.lang.String |
NODE_LEASE |
static java.lang.String |
NODE_METADATA |
Constructor and Description |
---|
Converters() |
public static final java.lang.String NODE_LEASE
public static final java.lang.String NODE_METADATA
public static final java.lang.String NODE_DATACENTER
public static final java.lang.String NODE_INSTANCE
public static final java.lang.String NODE_APP