Search in sources :

Example 1 with TransactionVersionContextSupplier

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;
    }
}
Also used : TransactionVersionContextSupplier(org.neo4j.kernel.impl.context.TransactionVersionContextSupplier) TransactionVersionContextSupplier(org.neo4j.kernel.impl.context.TransactionVersionContextSupplier) VersionContextSupplier(org.neo4j.io.pagecache.context.VersionContextSupplier) EmptyVersionContextSupplier(org.neo4j.io.pagecache.context.EmptyVersionContextSupplier) DependencyResolver(org.neo4j.common.DependencyResolver)

Aggregations

DependencyResolver (org.neo4j.common.DependencyResolver)1 EmptyVersionContextSupplier (org.neo4j.io.pagecache.context.EmptyVersionContextSupplier)1 VersionContextSupplier (org.neo4j.io.pagecache.context.VersionContextSupplier)1 TransactionVersionContextSupplier (org.neo4j.kernel.impl.context.TransactionVersionContextSupplier)1