public class DynamicI18NBeanFactory extends Object implements I18NBeanFactory
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:
UserI18NBeanFactory will be usedCachingI18NBeanFactory or a DefaultI18NBeanFactory, depending on the
context.DefaultI18NBeanFactory which will provide
translations in the default locale| Constructor and Description |
|---|
DynamicI18NBeanFactory() |
DynamicI18NBeanFactory(Supplier<Optional<org.springframework.beans.factory.BeanFactory>> setupBeanFactorySupplier) |
| Modifier and Type | Method and Description |
|---|---|
@NonNull I18NBean |
getI18NBean() |
@NonNull I18NBean |
getI18NBean(@NonNull Locale locale) |
@NonNull String |
getStateHash() |
public DynamicI18NBeanFactory(Supplier<Optional<org.springframework.beans.factory.BeanFactory>> setupBeanFactorySupplier)
public DynamicI18NBeanFactory()
public @NonNull I18NBean getI18NBean(@NonNull Locale locale)
getI18NBean in interface I18NBeanFactorylocale - locale for i18npublic @NonNull I18NBean getI18NBean()
getI18NBean in interface I18NBeanFactorypublic @NonNull String getStateHash()
getStateHash in interface I18NBeanFactoryCopyright © 2003–2019 Atlassian. All rights reserved.