Class UserI18NBeanFactory
- java.lang.Object
-
- com.atlassian.confluence.util.i18n.UserI18NBeanFactory
-
- All Implemented Interfaces:
I18NBeanFactory
public class UserI18NBeanFactory extends Object implements I18NBeanFactory
I18N bean factory which will return an I18N bean configured for the current user's locale.Also acts as a
BeanPostProcessor
for Spring bean factories, processing beans which implementUserLocaleAware
-
-
Constructor Summary
Constructors Constructor Description UserI18NBeanFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull I18NBean
getI18NBean()
@NonNull I18NBean
getI18NBean(@NonNull Locale locale)
@NonNull String
getStateHash()
void
setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
void
setLocaleManager(LocaleManager localeManager)
-
-
-
Method Detail
-
getI18NBean
public @NonNull I18NBean getI18NBean(@NonNull Locale locale)
- Specified by:
getI18NBean
in interfaceI18NBeanFactory
- Parameters:
locale
- locale for i18n- Returns:
- i18n bean for specified locale
-
getI18NBean
public @NonNull I18NBean getI18NBean()
- Specified by:
getI18NBean
in interfaceI18NBeanFactory
- Returns:
- i18n bean for the system default locale
-
getStateHash
public @NonNull String getStateHash()
- Specified by:
getStateHash
in interfaceI18NBeanFactory
- Returns:
- a hash of the current state of this factory.
-
setI18NBeanFactory
public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
-
setLocaleManager
public void setLocaleManager(LocaleManager localeManager)
-
-