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);
}
Aggregations