com.microsoft.azure.serializer.AzureJacksonAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-client-runtime Show documentation
Show all versions of azure-client-runtime Show documentation
This package contains the basic runtime for AutoRest generated Azure Java clients.
The newest version!
/**
* 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 {@link JacksonAdapter} with extra
* functionality useful for Azure operations.
*/
public final class AzureJacksonAdapter extends JacksonAdapter implements SerializerAdapter {
/**
* Creates an instance of the Azure flavored Jackson adapter.
*/
public AzureJacksonAdapter() {
super();
serializer().registerModule(CloudErrorDeserializer.getModule(simpleMapper()));
}
}