summaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/ConfigHack.java
blob: 55cf208e16383de5268dde4415265b4f3e2b6b46 (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
28
29
30
31
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container;

import com.yahoo.container.config.StatisticsEmitter;

/**
 * Distribution point for QRS specific stuff in a more or less
 * container agnostic way. This is only a stepping stone to moving these things
 * to Container and other pertinent classes, or simply removing the problems.
 *
 * <p>
 * This class should not reach a final release.
 *
 * @author Steinar Knutsen
 */
public final class ConfigHack {

    private volatile StatisticsEmitter statisticsEmitter = new StatisticsEmitter();
    public static final String TILED_TEMPLATE = "tiled";

    public static final ConfigHack instance = new ConfigHack();

    public StatisticsEmitter getStatisticsHandler() {
        return statisticsEmitter;
    }

    public void setStatisticsEmitter(StatisticsEmitter statisticsEmitter) {
        this.statisticsEmitter = statisticsEmitter;
    }

}