Search in sources :

Example 1 with LazyProcedures

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;
}
Also used : Config(org.neo4j.configuration.Config) Dependencies(org.neo4j.collection.Dependencies) GraphDatabaseDependencies(org.neo4j.graphdb.facade.GraphDatabaseDependencies) ExternalDependencies(org.neo4j.graphdb.facade.ExternalDependencies) LazyProcedures(org.neo4j.procedure.LazyProcedures)

Aggregations

Dependencies (org.neo4j.collection.Dependencies)1 Config (org.neo4j.configuration.Config)1 ExternalDependencies (org.neo4j.graphdb.facade.ExternalDependencies)1 GraphDatabaseDependencies (org.neo4j.graphdb.facade.GraphDatabaseDependencies)1 LazyProcedures (org.neo4j.procedure.LazyProcedures)1