Class DefaultI18NBeanFactory

java.lang.Object
com.atlassian.confluence.impl.i18n.DefaultI18NBeanFactory
All Implemented Interfaces:
I18NBeanFactory, org.springframework.beans.factory.DisposableBean

public class DefaultI18NBeanFactory extends Object implements I18NBeanFactory, org.springframework.beans.factory.DisposableBean
Produces I18NBeans which will return a bean either for the default or setup locale.
  • Field Details

  • Method Details

    • createMinimal

      public static I18NBeanFactory createMinimal()
      Instantiates a factory producing I18NBeans using the LocaleManager.DEFAULT_LOCALE.
    • getDefaultI18NBean

      public static I18NBean getDefaultI18NBean()
      Returns:
      I18NBean that can be accessed from any context and only contains the default bundle for the default locale.
    • 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.
    • setModeManager

      public void setModeManager(I18nModeManager modeManager)
    • setPluginEventManager

      public void setPluginEventManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager)
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception