use of org.apereo.cas.web.view.CasReloadableMessageBundle in project cas by apereo.
the class CasCoreWebConfiguration method messageSource.
@RefreshScope
@Bean
public AbstractResourceBasedMessageSource messageSource() {
final CasReloadableMessageBundle bean = new CasReloadableMessageBundle();
bean.setDefaultEncoding(casProperties.getMessageBundle().getEncoding());
bean.setCacheSeconds(casProperties.getMessageBundle().getCacheSeconds());
bean.setFallbackToSystemLocale(casProperties.getMessageBundle().isFallbackSystemLocale());
bean.setUseCodeAsDefaultMessage(casProperties.getMessageBundle().isUseCodeMessage());
bean.setBasenames(casProperties.getMessageBundle().getBaseNames());
return bean;
}
Aggregations