Search in sources :

Example 1 with ComponentsBinder

use of org.neo4j.server.bind.ComponentsBinder 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;
}
Also used : RepresentationFormatRepository(org.neo4j.server.rest.repr.RepresentationFormatRepository) ComponentsBinder(org.neo4j.server.bind.ComponentsBinder)

Aggregations

ComponentsBinder (org.neo4j.server.bind.ComponentsBinder)1 RepresentationFormatRepository (org.neo4j.server.rest.repr.RepresentationFormatRepository)1