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 |
---|---|
I18NBean |
getI18NBean() |
I18NBean |
getI18NBean(Locale locale) |
public DynamicI18NBeanFactory(Supplier<Optional<org.springframework.beans.factory.BeanFactory>> setupBeanFactorySupplier)
public DynamicI18NBeanFactory()
@Nonnull public I18NBean getI18NBean(@Nonnull Locale locale)
getI18NBean
in interface I18NBeanFactory
locale
- locale for i18n@Nonnull public I18NBean getI18NBean()
getI18NBean
in interface I18NBeanFactory
Copyright © 2003–2017 Atlassian. All rights reserved.