io.quarkus.neo4j.runtime.Neo4jDriverProducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-neo4j Show documentation
Show all versions of quarkus-neo4j Show documentation
Connect to Neo4j graph datastore
package io.quarkus.neo4j.runtime;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Singleton;
import org.neo4j.driver.Driver;
@ApplicationScoped
public class Neo4jDriverProducer {
private volatile Driver driver;
void initialize(Driver driver) {
this.driver = driver;
}
@Singleton
@Produces
public Driver driver() {
return driver;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy