blob: 435e598f8871565e64d688a660b9a54951803712 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "configsetsource.h"
#include <vespa/config/common/sourcefactory.h>
namespace config {
class Source;
class IConfigHolder;
class ConfigKey;
/**
* Factory creating config payload from config instances.
*/
class ConfigSetSourceFactory : public SourceFactory
{
public:
using BuilderMapSP = ConfigSetSource::BuilderMapSP;
explicit ConfigSetSourceFactory(BuilderMapSP builderMap);
~ConfigSetSourceFactory() override;
std::unique_ptr<Source> createSource(std::shared_ptr<IConfigHolder> holder, const ConfigKey & key) const override;
private:
BuilderMapSP _builderMap;
};
} // namespace config
|