Search in sources :

Example 1 with ServerTypes

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));
}
Also used : DaoClasses(io.datarouter.storage.dao.DaoClasses) PluginConfiguration(io.datarouter.plugin.PluginConfiguration) ServerTypes(io.datarouter.storage.servertype.ServerTypes)

Aggregations

PluginConfiguration (io.datarouter.plugin.PluginConfiguration)1 DaoClasses (io.datarouter.storage.dao.DaoClasses)1 ServerTypes (io.datarouter.storage.servertype.ServerTypes)1