Class UserI18NBeanFactory

java.lang.Object
com.atlassian.confluence.util.i18n.UserI18NBeanFactory
All Implemented Interfaces:
I18NBeanFactory

public class UserI18NBeanFactory extends Object implements I18NBeanFactory
I18N bean factory which will return an I18N bean configured for the current user's locale.

Also acts as a BeanPostProcessor for Spring bean factories, processing beans which implement UserLocaleAware

See Also:
  • Constructor Details

    • UserI18NBeanFactory

      public UserI18NBeanFactory()
  • Method Details

    • getI18NBean

      public @NonNull I18NBean getI18NBean(@NonNull Locale locale)
      Specified by:
      getI18NBean in interface I18NBeanFactory
      Parameters:
      locale - locale for i18n
      Returns:
      i18n bean for specified locale
    • getI18NBean

      public @NonNull I18NBean getI18NBean()
      Specified by:
      getI18NBean in interface I18NBeanFactory
      Returns:
      i18n bean for the system default locale
    • getStateHash

      public @NonNull String getStateHash()
      Specified by:
      getStateHash in interface I18NBeanFactory
      Returns:
      a hash of the current state of this factory.
    • setI18NBeanFactory

      public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
    • setLocaleManager

      public void setLocaleManager(LocaleManager localeManager)