mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
39 lines
1.1 KiB
C++
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>();
|
|
}
|
|
};
|
|
|
|
}
|