21 lines
571 B
Java
21 lines
571 B
Java
package org.opencdmp.commons.locale;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
@Configuration
|
|
@EnableConfigurationProperties(LocaleProperties.class)
|
|
public class LocaleConfiguration {
|
|
private final LocaleProperties properties;
|
|
|
|
@Autowired
|
|
public LocaleConfiguration(LocaleProperties properties) {
|
|
this.properties = properties;
|
|
}
|
|
|
|
public LocaleProperties getProperties() {
|
|
return properties;
|
|
}
|
|
}
|