Class LanguageBean

  • All Implemented Interfaces:
    java.io.Serializable

    @Named("language")
    @ApplicationScoped
    public class LanguageBean
    extends java.lang.Object
    implements java.io.Serializable
    Version:
    August 9, 2017
    See Also:
    Serialized Form
    • Constructor Detail

      • LanguageBean

        public LanguageBean()
    • Method Detail

      • initSupportedLocales

        public void initSupportedLocales​(@Observes @ConfigurationUpdate
                                         AppConfiguration appConfiguration)
      • getLocaleCode

        @Deprecated
        public java.lang.String getLocaleCode()
        Deprecated.
      • getLocale

        public java.util.Locale getLocale()
      • setLocaleCode

        public void setLocaleCode​(java.lang.String requestedLocaleCode)
      • setLocale

        public void setLocale​(java.util.Locale requestedLocale)
      • getSupportedLocales

        public java.util.List<java.util.Locale> getSupportedLocales()
      • getMessage

        public java.lang.String getMessage​(java.lang.String key)