Class DynamicI18NBeanFactory

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

public class DynamicI18NBeanFactory extends Object implements I18NBeanFactory
Produces the best I18NBeans it can at the point it is first called upon. This factory delegates to one of the following factories for the actual I18NBean creation:
  • Constructor Details

    • DynamicI18NBeanFactory

      public DynamicI18NBeanFactory(Supplier<Optional<org.springframework.beans.factory.BeanFactory>> setupBeanFactorySupplier)
    • DynamicI18NBeanFactory

      public DynamicI18NBeanFactory()
  • 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.