Search in sources :

Example 1 with SystemGraphInitializer

use of org.neo4j.dbms.database.SystemGraphInitializer in project neo4j by neo4j.

the class CommunityEditionModule method createSystemGraphInitializer.

@Override
public SystemGraphInitializer createSystemGraphInitializer(GlobalModule globalModule) {
    DependencyResolver globalDependencies = globalModule.getGlobalDependencies();
    Supplier<GraphDatabaseService> systemSupplier = systemSupplier(globalDependencies);
    var systemGraphComponents = globalModule.getSystemGraphComponents();
    SystemGraphInitializer initializer = CommunityEditionModule.tryResolveOrCreate(SystemGraphInitializer.class, globalModule.getExternalDependencyResolver(), () -> new DefaultSystemGraphInitializer(systemSupplier, systemGraphComponents));
    return globalModule.getGlobalDependencies().satisfyDependency(initializer);
}
Also used : DefaultSystemGraphInitializer(org.neo4j.dbms.database.DefaultSystemGraphInitializer) GraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService) DefaultSystemGraphInitializer(org.neo4j.dbms.database.DefaultSystemGraphInitializer) SystemGraphInitializer(org.neo4j.dbms.database.SystemGraphInitializer) DependencyResolver(org.neo4j.common.DependencyResolver)

Aggregations

DependencyResolver (org.neo4j.common.DependencyResolver)1 DefaultSystemGraphInitializer (org.neo4j.dbms.database.DefaultSystemGraphInitializer)1 SystemGraphInitializer (org.neo4j.dbms.database.SystemGraphInitializer)1 GraphDatabaseService (org.neo4j.graphdb.GraphDatabaseService)1