JsonSerializerProviders Class

  • java.lang.Object
    • com.azure.core.util.serializer.JsonSerializerProviders

public final class JsonSerializerProviders

This class is a proxy for using a JsonSerializerProvider loaded from the classpath.

Method Summary

Modifier and Type Method and Description
static JsonSerializer createInstance()

Creates an instance of JsonSerializer using the first JsonSerializerProvider found in the classpath.

static JsonSerializer createInstance(boolean useDefaultIfAbsent)

Creates an instance of JsonSerializer using the first JsonSerializerProvider found in the classpath.

Methods inherited from java.lang.Object

Method Details

createInstance

public static JsonSerializer createInstance()

Creates an instance of JsonSerializer using the first JsonSerializerProvider found in the classpath.

Returns:

A new instance of JsonSerializer.

createInstance

public static JsonSerializer createInstance(boolean useDefaultIfAbsent)

Creates an instance of JsonSerializer using the first JsonSerializerProvider found in the classpath. If no provider is found in classpath, a default provider will be included if useDefaultIfAbsent is set to true.

Parameters:

useDefaultIfAbsent - If no provider is found in classpath, a default provider will be used. if useDefaultIfAbsent is set to true.

Returns:

A new instance of JsonSerializer.

Applies to