org.eclipse.jnosql.communication.mongodb.document.QuarkusMongoDBDocumentConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-jnosql-document-mongodb Show documentation
Show all versions of quarkus-jnosql-document-mongodb Show documentation
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.
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