All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.jsonp.JsonProviderHolder Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.jsonp;

import jakarta.json.spi.JsonProvider;

/**
 * A utility class that holds an instance of {@link JsonProvider}.
 * Should be used instead of {@link jakarta.json.Json} for performance reasons.
 *
 * @see Json factory methods are very inefficient
 */
public final class JsonProviderHolder {

    private static final JsonProvider JSON_PROVIDER = JsonProvider.provider();

    private JsonProviderHolder() {
    }

    public static JsonProvider jsonProvider() {
        return JSON_PROVIDER;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy