All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.block.ftl.deployment.StaticConfigSource Maven / Gradle / Ivy

There is a newer version: 0.415.1
Show newest version
package xyz.block.ftl.deployment;

import java.util.Set;

import org.eclipse.microprofile.config.spi.ConfigSource;

public class StaticConfigSource implements ConfigSource {

    public static final String QUARKUS_BANNER_ENABLED = "quarkus.banner.enabled";
    final static String OTEL_METRICS_ENABLED = "quarkus.otel.metrics.enabled";

    @Override
    public Set getPropertyNames() {
        return Set.of(QUARKUS_BANNER_ENABLED);
    }

    @Override
    public String getValue(String propertyName) {
        switch (propertyName) {
            case (QUARKUS_BANNER_ENABLED) -> {
                return "false";
            }
            case OTEL_METRICS_ENABLED -> {
                return "true";
            }
        }
        return null;
    }

    @Override
    public String getName() {
        return "Quarkus Static Config Source";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy