Search in sources :

Example 1 with SqlTorodModule

use of com.torodb.torod.guice.SqlTorodModule in project torodb by torodb.

the class ToroDbRuntimeModule method configure.

@Override
protected void configure() {
    binder().requireExplicitBindings();
    bind(BackendService.class).toInstance(backend.getBackendService());
    expose(BackendService.class);
    install(new D2RModule());
    install(new SqlTorodModule());
    install(new MongoLayerModule());
    expose(MongodServer.class);
    expose(TorodbCommandsLibrary.class);
    expose(ObjectIdFactory.class);
}
Also used : BackendService(com.torodb.core.backend.BackendService) SqlTorodModule(com.torodb.torod.guice.SqlTorodModule) MongoLayerModule(com.torodb.mongodb.guice.MongoLayerModule) D2RModule(com.torodb.d2r.guice.D2RModule)

Example 2 with SqlTorodModule

use of com.torodb.torod.guice.SqlTorodModule in project torodb by torodb.

the class StampedeRuntimeModule method configure.

@Override
protected void configure() {
    binder().requireExplicitBindings();
    bind(ConsistencyHandler.class).toInstance(consistencyHandler);
    expose(ConsistencyHandler.class);
    bind(BackendService.class).toInstance(backend.getBackendService());
    expose(BackendService.class);
    install(new D2RModule());
    install(new SqlTorodModule());
}
Also used : BackendService(com.torodb.core.backend.BackendService) SqlTorodModule(com.torodb.torod.guice.SqlTorodModule) D2RModule(com.torodb.d2r.guice.D2RModule) ConsistencyHandler(com.torodb.mongodb.repl.ConsistencyHandler)

Aggregations

BackendService (com.torodb.core.backend.BackendService)2 D2RModule (com.torodb.d2r.guice.D2RModule)2 SqlTorodModule (com.torodb.torod.guice.SqlTorodModule)2 MongoLayerModule (com.torodb.mongodb.guice.MongoLayerModule)1 ConsistencyHandler (com.torodb.mongodb.repl.ConsistencyHandler)1