diff options
Diffstat (limited to 'container-core/src/main/java/com/yahoo/container/ConfigHack.java')
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/ConfigHack.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/ConfigHack.java b/container-core/src/main/java/com/yahoo/container/ConfigHack.java new file mode 100644 index 00000000000..55cf208e163 --- /dev/null +++ b/container-core/src/main/java/com/yahoo/container/ConfigHack.java @@ -0,0 +1,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; + } + +} |