summaryrefslogtreecommitdiffstats
path: root/configserver-flags/src/main/java/com/yahoo/vespa/configserver/flags/ConfigServerFlagSource.java
blob: d452d8a4aad7e4a4ce7449d83f1b209064d14008 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.configserver.flags;

import com.google.inject.Inject;
import com.yahoo.vespa.configserver.flags.db.ZooKeeperFlagSource;
import com.yahoo.vespa.flags.FileFlagSource;
import com.yahoo.vespa.flags.OrderedFlagSource;

/**
 * @author hakonhall
 */
public class ConfigServerFlagSource extends OrderedFlagSource {
    @Inject
    public ConfigServerFlagSource(FlagsDb flagsDb) {
        super(new FileFlagSource(), new ZooKeeperFlagSource(flagsDb));
    }
}