io.quarkiverse.jnosql.document.runtime.DocumentManagerProducer Maven / Gradle / Ivy
The newest version!
package io.quarkiverse.jnosql.document.runtime;
import java.util.function.Supplier;
import jakarta.annotation.Priority;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.inject.Alternative;
import jakarta.enterprise.inject.Produces;
import org.eclipse.jnosql.communication.semistructured.DatabaseConfiguration;
import org.eclipse.jnosql.communication.semistructured.DatabaseManager;
import org.eclipse.jnosql.communication.semistructured.DatabaseManagerFactory;
import org.eclipse.jnosql.mapping.Database;
import org.eclipse.jnosql.mapping.DatabaseType;
import org.eclipse.jnosql.mapping.core.config.MappingConfigurations;
import io.quarkiverse.jnosql.core.runtime.AbstractManagerProducer;
public class DocumentManagerProducer
extends AbstractManagerProducer
implements Supplier {
@Override
@Produces
@Alternative
@Priority(1)
@ApplicationScoped
@Database(DatabaseType.DOCUMENT)
public DatabaseManager get() {
return apply(MappingConfigurations.DOCUMENT_DATABASE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy