Package com.almis.awe.service
Class LocaleService
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.LocaleService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Manage application locales
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchangeLanguage
(String language) Change language to localesGenerate json object with application localsgetLocaleResource
(String language) Generate json object with application localsMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
LocaleService
public LocaleService()
-
-
Method Details
-
changeLanguage
Change language to locales- Parameters:
language
- New language- Returns:
- change language
-
getApplicationLocales
Generate json object with application locals- Returns:
- get application locales
- Throws:
AWException
- AWE exception
-
getLocaleResource
Generate json object with application locals- Parameters:
language
- Language- Returns:
- Locale resource
-