xyz.block.ftl.deployment.StaticConfigSource Maven / Gradle / Ivy
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