org.eclipse.jnosql.databases.elasticsearch.communication.QuarkusElasticseachDocumentConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-jnosql-document-elasticsearch Show documentation
Show all versions of quarkus-jnosql-document-elasticsearch Show documentation
Quarkus JNoSQL Document Elasticsearch Runtime provides runtime support for integrating Elasticsearch
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.
The newest version!
package org.eclipse.jnosql.databases.elasticsearch.communication;
import jakarta.inject.Inject;
import jakarta.inject.Singleton;
import org.eclipse.jnosql.communication.Settings;
import org.eclipse.jnosql.communication.semistructured.DatabaseConfiguration;
import co.elastic.clients.elasticsearch.ElasticsearchClient;
@Singleton
public class QuarkusElasticseachDocumentConfiguration implements DatabaseConfiguration {
@Inject
protected ElasticsearchClient client;
@Override
public ElasticsearchDocumentManagerFactory apply(Settings settings) throws NullPointerException {
return new ElasticsearchDocumentManagerFactory(this.client);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy