public class DynamicI18NBeanFactory extends Object implements I18NBeanFactory
I18NBean
s 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 localeConstructor 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 I18NBeanFactory
locale
- locale for i18npublic @NonNull I18NBean getI18NBean()
getI18NBean
in interface I18NBeanFactory
public @NonNull String getStateHash()
getStateHash
in interface I18NBeanFactory
Copyright © 2003–2021 Atlassian. All rights reserved.