use of com.torodb.packaging.guice.BackendDerbyImplementationModule in project torodb by torodb.
the class BootstrapModule method configure.
@Override
protected void configure() {
binder().requireExplicitBindings();
install(new PackagingModule(clock));
install(new CoreModule());
install(new ExecutorServicesModule());
install(new ConcurrentModule());
install(new MetainfModule());
install(new MetricsModule(config.getGeneric()));
install(new BackendMultiImplementationModule(config.getProtocol().getMongo(), config.getGeneric(), config.getBackend().getBackendImplementation(), new BackendPostgresImplementationModule(), new BackendDerbyImplementationModule()));
bind(Config.class).toInstance(config);
bind(MongodServerConfig.class).toInstance(new MongodServerConfig(HostAndPort.fromParts("localhost", 27017)));
bind(BuildProperties.class).to(DefaultBuildProperties.class).asEagerSingleton();
}
Aggregations