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

com.arangodb.serde.jsonb.JsonbSerdeProvider Maven / Gradle / Ivy

There is a newer version: 7.13.0
Show newest version
package com.arangodb.serde.jsonb;

import com.arangodb.ContentType;
import com.arangodb.serde.ArangoSerdeProvider;
import jakarta.json.bind.JsonbConfig;

public class JsonbSerdeProvider implements ArangoSerdeProvider {

    /**
     * Creates a new JsonbSerde with default settings.
     *
     * @return the created JsonbSerde
     */
    @Override
    public JsonbSerde create() {
        return new JsonbSerde();
    }

    /**
     * Creates a new JsonbSerde using the provided configuration.
     *
     * @param config JsonbConfig to use
     * @return the created JsonbSerde
     */
    static JsonbSerde create(final JsonbConfig config) {
        return new JsonbSerde(config);
    }

    @Override
    public ContentType getContentType() {
        return ContentType.JSON;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy