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

xyz.block.ftl.runtime.config.FTLConfigSourceFactory Maven / Gradle / Ivy

The newest version!
package xyz.block.ftl.runtime.config;

import java.util.List;

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

import io.smallrye.config.ConfigSourceContext;
import io.smallrye.config.ConfigSourceFactory;
import xyz.block.ftl.runtime.FTLController;

public class FTLConfigSourceFactory implements ConfigSourceFactory {

    @Override
    public Iterable getConfigSources(ConfigSourceContext context) {
        var controller = FTLController.instance();
        return List.of(new FTLConfigSource(controller));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy