ClickHouse/dbms/src/Interpreters/RuntimeComponentsFactory.h
2017-12-01 19:25:27 +03:00

39 lines
1.1 KiB
C++

#pragma once
#include <Dictionaries/Embedded/GeoDictionariesLoader.h>
#include <Interpreters/IRuntimeComponentsFactory.h>
#include <Interpreters/ExternalLoaderConfigRepository.h>
#include <Interpreters/SecurityManager.h>
namespace DB
{
/** Default implementation of runtime components factory
* used by native server application.
*/
class RuntimeComponentsFactory : public IRuntimeComponentsFactory
{
public:
std::unique_ptr<ISecurityManager> createSecurityManager() override
{
return std::make_unique<SecurityManager>();
}
std::unique_ptr<IGeoDictionariesLoader> createGeoDictionariesLoader() override
{
return std::make_unique<GeoDictionariesLoader>();
}
std::unique_ptr<IExternalLoaderConfigRepository> createExternalDictionariesConfigRepository() override
{
return std::make_unique<ExternalLoaderConfigRepository>();
}
std::unique_ptr<IExternalLoaderConfigRepository> createExternalModelsConfigRepository() override
{
return std::make_unique<ExternalLoaderConfigRepository>();
}
};
}