aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/common/sourcefactory.h
blob: f11a070fd954943314e5f0c900eaad64ebc3b649 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Yahoo. 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