blob: 9927a3334bf137dfd9889933d3b673d2f9f64906 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "source.h"
#include "configkey.h"
namespace config {
class IConfigHolder;
/*
* Source factory, creating possible config sources.
*/
class SourceFactory {
public:
virtual std::unique_ptr<Source> createSource(std::shared_ptr<IConfigHolder> holder, const ConfigKey & key) const = 0;
virtual ~SourceFactory() = default;
};
} // namespace common
|