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

org.eclipse.jnosql.communication.mongodb.document.QuarkusMongoDBDocumentConfiguration Maven / Gradle / Ivy

Go to download

Quarkus JNoSQL Document MongoDB Runtime provides runtime support for integrating MongoDB document-oriented databases with Quarkus applications. This extension facilitates seamless integration, enabling efficient storage, retrieval, and management of document-oriented data within Quarkus projects, enhancing developer productivity.

There is a newer version: 3.3.2
Show newest version
package org.eclipse.jnosql.communication.mongodb.document;

import jakarta.inject.Inject;
import jakarta.inject.Singleton;

import org.eclipse.jnosql.communication.Settings;
import org.eclipse.jnosql.communication.document.DocumentConfiguration;

import com.mongodb.client.MongoClient;

@Singleton
public class QuarkusMongoDBDocumentConfiguration implements DocumentConfiguration {

    @Inject
    protected MongoClient mongoClient;

    @Override
    public MongoDBDocumentManagerFactory apply(Settings settings) throws NullPointerException {
        return new MongoDBDocumentManagerFactory(this.mongoClient);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy