Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.serializer; import com.fasterxml.jackson.databind.ObjectMapper; import com.microsoft.rest.protocol.SerializerAdapter; import com.microsoft.rest.serializer.JacksonAdapter;
A serialization helper class overriding JacksonAdapter with extra functionality useful for Azure operations.
/** * A serialization helper class overriding {@link JacksonAdapter} with extra * functionality useful for Azure operations. */
public final class AzureJacksonAdapter extends JacksonAdapter implements SerializerAdapter<ObjectMapper> {
Creates an instance of the Azure flavored Jackson adapter.
/** * Creates an instance of the Azure flavored Jackson adapter. */
public AzureJacksonAdapter() { super(); serializer().registerModule(CloudErrorDeserializer.getModule(simpleMapper())); } }