use of org.neo4j.kernel.impl.context.TransactionVersionContextSupplier in project neo4j by neo4j.
the class AbstractDatabaseManager method createVersionContextSupplier.
protected VersionContextSupplier createVersionContextSupplier(DatabaseConfig databaseConfig) {
DependencyResolver externalDependencyResolver = globalModule.getExternalDependencyResolver();
Class<VersionContextSupplier> klass = VersionContextSupplier.class;
if (externalDependencyResolver.containsDependency(klass)) {
return externalDependencyResolver.resolveDependency(klass);
} else {
return databaseConfig.get(snapshot_query) ? new TransactionVersionContextSupplier() : EmptyVersionContextSupplier.EMPTY;
}
}
Aggregations