aboutsummaryrefslogtreecommitdiffstats
path: root/config-model-api/src/main/java/com/yahoo/config/model/api/ConfigDefinitionRepo.java
blob: e2ae6d55d8730416429c8f700d36b94a32e3d2a5 (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
// Copyright Yahoo. 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
     */
    ConfigDefinition get(ConfigDefinitionKey key);

}