ca.gc.aafc.dina.SupportedLanguagesConfiguration Maven / Gradle / Ivy
package ca.gc.aafc.dina;
import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import ca.gc.aafc.dina.property.YamlPropertyLoaderFactory;
@PropertySource(value = "classpath:supported-languages.yml",
factory = YamlPropertyLoaderFactory.class)
@Configuration
@ConfigurationProperties
public class SupportedLanguagesConfiguration {
private final List supportedLanguages;
public SupportedLanguagesConfiguration(List supportedLanguages) {
this.supportedLanguages = supportedLanguages;
}
public List getSupportedLanguages() {
return supportedLanguages;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy