use of io.datarouter.storage.servertype.ServerTypes in project datarouter by hotpads.
the class DatarouterStoragePlugin method configure.
@Override
public void configure() {
bind(ServerTypes.class).toInstance(serverTypes);
bindActual(ServerTypeDetector.class, serverTypeDetectorClass);
if (settingOverridesClass != null) {
// allow overriders in tests;
bind(settingOverridesClass).asEagerSingleton();
}
bindActualInstance(RequiredClientIds.class, requiredClientIds);
if (clientOptionsFactoryClass != null) {
bindActual(ClientOptionsFactory.class, clientOptionsFactoryClass);
}
if (schemaUpdateOptionsFactoryClass != null) {
bindActual(SchemaUpdateOptionsFactory.class, schemaUpdateOptionsFactoryClass);
}
bind(DaoClasses.class).toInstance(new DaoClasses(daoClasses));
bindActualInstance(PluginConfiguration.class, new PluginConfiguration(classSingle, classList, instanceSingle, instanceList));
}
Aggregations