blob: d2b8dc75d223537dc57fd1888eabe94316be311e (
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
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.api;
import com.yahoo.vespa.config.ConfigDefinitionKey;
import com.yahoo.vespa.config.buildergen.ConfigDefinition;
import java.util.Map;
/**
* A config definition repository.
*
* @author Ulf Lillengen
*/
public interface ConfigDefinitionRepo {
/**
* Retrieve a map with all config definitions in this repo.
*/
Map<ConfigDefinitionKey, ConfigDefinition> getConfigDefinitions();
/**
* Gets a config definition from repo or null if not found
*/
// TODO: Remove default implementation when 6.246 is the oldest version in use
default ConfigDefinition get(ConfigDefinitionKey key) { return null; }
}
|