summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/config/model/ConfigModelInstanceFactory.java
blob: a9b3fc73eb37e4e4d823b281c4ebb3b56d7c4a74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model;

/**
 * Interface for factories of config models.
 *
 * @author lulf
 * @since 5.1
 */
public interface ConfigModelInstanceFactory<MODEL extends ConfigModel> {

    /**
     * Create an instance of {@link com.yahoo.config.model.ConfigModel} given the input context.
     *
     * @param context The {@link com.yahoo.config.model.ConfigModelContext} to use.
     * @return an instance of {@link com.yahoo.config.model.ConfigModel}
     */
    MODEL createModel(ConfigModelContext context);

}