aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/set/configsetsourcefactory.cpp
blob: 9d443cdaabc1b5e7fa96f3226262277efa85011f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "configsetsourcefactory.h"

namespace config {

ConfigSetSourceFactory::ConfigSetSourceFactory(BuilderMapSP builderMap)
    : _builderMap(std::move(builderMap))
{
}

ConfigSetSourceFactory::~ConfigSetSourceFactory() = default;

std::unique_ptr<Source>
ConfigSetSourceFactory::createSource(std::shared_ptr<IConfigHolder> holder, const ConfigKey & key) const
{
    return std::make_unique<ConfigSetSource>(std::move(holder), key, _builderMap);
}

} // namespace config