use of org.neo4j.server.rest.repr.RepresentationFormatRepository in project neo4j by neo4j.
the class AbstractNeoServer method createDefaultInjectables.
protected Collection<InjectableProvider<?>> createDefaultInjectables() {
Collection<InjectableProvider<?>> singletons = new ArrayList<>();
Database database = getDatabase();
singletons.add(new DatabaseProvider(database));
singletons.add(new DatabaseActions.Provider(databaseActions));
singletons.add(new GraphDatabaseServiceProvider(database));
singletons.add(new NeoServerProvider(this));
singletons.add(providerForSingleton(new ConfigAdapter(getConfig()), Configuration.class));
singletons.add(providerForSingleton(getConfig(), Config.class));
singletons.add(new WebServerProvider(getWebServer()));
PluginInvocatorProvider pluginInvocatorProvider = new PluginInvocatorProvider(this);
singletons.add(pluginInvocatorProvider);
RepresentationFormatRepository repository = new RepresentationFormatRepository(this);
singletons.add(new InputFormatProvider(repository));
singletons.add(new OutputFormatProvider(repository));
singletons.add(new CypherExecutorProvider(cypherExecutor));
singletons.add(providerForSingleton(transactionFacade, TransactionFacade.class));
singletons.add(providerFromSupplier(authManagerSupplier, AuthManager.class));
singletons.add(providerFromSupplier(userManagerSupplier, UserManagerSupplier.class));
singletons.add(new TransactionFilter(database));
singletons.add(new LoggingProvider(logProvider));
singletons.add(providerForSingleton(logProvider.getLog(NeoServer.class), Log.class));
singletons.add(providerForSingleton(resolveDependency(UsageData.class), UsageData.class));
return singletons;
}
use of org.neo4j.server.rest.repr.RepresentationFormatRepository in project neo4j by neo4j.
the class AbstractNeoWebServer method createComponentsBinder.
private ComponentsBinder createComponentsBinder() {
ComponentsBinder binder = new ComponentsBinder();
var databaseStateService = getGlobalDependencies().resolveDependency(DatabaseStateService.class);
var databaseResolver = getGlobalDependencies().resolveDependency(DefaultDatabaseResolver.class);
binder.addSingletonBinding(databaseManagementService, DatabaseManagementService.class);
binder.addSingletonBinding(databaseStateService, DatabaseStateService.class);
binder.addSingletonBinding(this, NeoWebServer.class);
binder.addSingletonBinding(getConfig(), Config.class);
binder.addSingletonBinding(transactionMemoryPool, MemoryPool.class);
binder.addSingletonBinding(getWebServer(), WebServer.class);
binder.addSingletonBinding(new RepresentationFormatRepository(), RepresentationFormatRepository.class);
binder.addLazyBinding(InputFormatProvider.class, InputFormat.class);
binder.addLazyBinding(OutputFormatProvider.class, OutputFormat.class);
binder.addSingletonBinding(httpTransactionManager, HttpTransactionManager.class);
binder.addSingletonBinding(databaseResolver, DefaultDatabaseResolver.class);
binder.addLazyBinding(authManagerSupplier, AuthManager.class);
binder.addSingletonBinding(userLogProvider, LogProvider.class);
binder.addSingletonBinding(userLogProvider.getLog(NeoWebServer.class), Log.class);
return binder;
}
Aggregations