use of org.neo4j.kernel.extension.ExtensionFactory in project neo4j by neo4j.
the class Recovery method instantiateRecoveryExtensions.
private static DatabaseExtensions instantiateRecoveryExtensions(DatabaseLayout databaseLayout, FileSystemAbstraction fileSystem, Config config, LogService logService, PageCache pageCache, JobScheduler jobScheduler, DbmsInfo dbmsInfo, Monitors monitors, TokenHolders tokenHolders, RecoveryCleanupWorkCollector recoveryCleanupCollector, DatabaseReadOnlyChecker readOnlyChecker, Iterable<ExtensionFactory<?>> extensionFactories, PageCacheTracer pageCacheTracer) {
List<ExtensionFactory<?>> recoveryExtensions = stream(extensionFactories).filter(extension -> extension.getClass().isAnnotationPresent(RecoveryExtension.class)).collect(toList());
Dependencies deps = new Dependencies();
NonListenableMonitors nonListenableMonitors = new NonListenableMonitors(monitors, logService.getInternalLogProvider());
deps.satisfyDependencies(fileSystem, config, logService, pageCache, nonListenableMonitors, jobScheduler, tokenHolders, recoveryCleanupCollector, pageCacheTracer, databaseLayout, readOnlyChecker);
DatabaseExtensionContext extensionContext = new DatabaseExtensionContext(databaseLayout, dbmsInfo, deps);
return new DatabaseExtensions(extensionContext, recoveryExtensions, deps, ExtensionFailureStrategies.fail());
}
use of org.neo4j.kernel.extension.ExtensionFactory in project neo4j by neo4j.
the class SchemaIndexWaitingAcceptanceTest method configure.
@ExtensionCallback
void configure(TestDatabaseManagementServiceBuilder builder) {
List<ExtensionFactory<?>> extensions = Arrays.asList(singleInstanceIndexProviderFactory("test", provider), new TokenIndexProviderFactory());
builder.setExtensions(extensions).noOpSystemGraphInitializer();
builder.setConfig(default_schema_provider, provider.getProviderDescriptor().name());
}
Aggregations