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

restx.config.processor.SettingsProvider.mustache Maven / Gradle / Ivy

There is a newer version: 1.2.0-rc2
Show newest version
package {{package}};

import restx.common.ConfigElement;
import restx.config.ConfigSupplier;
import restx.common.RestxConfig;
import restx.common.StdRestxConfig;
import restx.factory.Component;

import static java.util.Arrays.asList;

@Component(priority = 1000)
public class {{settingsSimpleType}}Provider implements ConfigSupplier {
    @Override
    public RestxConfig get() {
        return StdRestxConfig.of(asList(new ConfigElement[] {
{{#keys}}
                ConfigElement.of("{{settingsType}}", "{{doc}}", "{{key}}", "{{defaultValue}}"),
{{/keys}}
        }
        ));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy