Package io.jans.as.server.i18n
Class LanguageBean
- java.lang.Object
-
- io.jans.as.server.i18n.LanguageBean
-
- All Implemented Interfaces:
Serializable
@Named("language") @ApplicationScoped public class LanguageBean extends Object implements Serializable
- Version:
- August 9, 2017
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LanguageBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Locale
getLocale()
String
getLocaleCode()
Deprecated.String
getMessage(String key)
List<Locale>
getSupportedLocales()
void
initSupportedLocales(io.jans.as.model.configuration.AppConfiguration appConfiguration)
void
setLocale(Locale requestedLocale)
void
setLocaleCode(String requestedLocaleCode)
-
-
-
Method Detail
-
initSupportedLocales
public void initSupportedLocales(@Observes @ConfigurationUpdate io.jans.as.model.configuration.AppConfiguration appConfiguration)
-
getLocaleCode
@Deprecated public String getLocaleCode()
Deprecated.
-
setLocaleCode
public void setLocaleCode(String requestedLocaleCode)
-
getLocale
public Locale getLocale()
-
setLocale
public void setLocale(Locale requestedLocale)
-
-