use of org.neo4j.procedure.LazyProcedures in project neo4j by neo4j.
the class TestDatabaseManagementServiceBuilder method build.
@Override
public DatabaseManagementService build() {
Config cfg = config.set(GraphDatabaseSettings.neo4j_home, homeDirectory.toAbsolutePath()).fromConfig(fromConfig).build();
var originalDependencies = dependencies;
if (noOpSystemGraphInitializer) {
dependencies = TestDatabaseIdRepository.noOpSystemGraphInitializer(dependencies, cfg);
}
if (lazyProcedures) {
var dependencyWrapper = new Dependencies(dependencies);
dependencyWrapper.satisfyDependency(new LazyProcedures());
dependencies = dependencyWrapper;
}
var dbms = newDatabaseManagementService(cfg, databaseDependencies());
dependencies = originalDependencies;
return dbms;
}
Aggregations