@Service(value="localeService") public class LocaleServiceImpl extends Object implements LocaleService, ISystemSettingChangeEventListener
defaultLocale, SERVICE_NAME| Constructor and Description |
|---|
LocaleServiceImpl(SystemSettings systemSettings) |
| Modifier and Type | Method and Description |
|---|---|
Locale |
getDefaultLocale() |
boolean |
isLanguageSupported(String language) |
void |
onApplicationEvent(SystemSettingChangedEvent event) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedLanguagespublic LocaleServiceImpl(SystemSettings systemSettings)
public void onApplicationEvent(SystemSettingChangedEvent event)
onApplicationEvent in interface ISystemSettingChangeEventListeneronApplicationEvent in interface org.springframework.context.ApplicationListener<SystemSettingChangedEvent>public boolean isLanguageSupported(String language)
isLanguageSupported in interface LocaleServicepublic Locale getDefaultLocale()
getDefaultLocale in interface LocaleServiceCopyright © 2018–2021 Tesler. All rights reserved.