Class UserI18NBeanFactory
java.lang.Object
com.atlassian.confluence.util.i18n.UserI18NBeanFactory
- All Implemented Interfaces:
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 implement UserLocaleAware
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull I18NBean@NonNull I18NBeangetI18NBean(@NonNull Locale locale) @NonNull StringvoidsetI18NBeanFactory(I18NBeanFactory i18NBeanFactory) voidsetLocaleManager(LocaleManager localeManager)
-
Constructor Details
-
UserI18NBeanFactory
public UserI18NBeanFactory()
-
-
Method Details
-
getI18NBean
- Specified by:
getI18NBeanin interfaceI18NBeanFactory- Parameters:
locale- locale for i18n- Returns:
- i18n bean for specified locale
-
getI18NBean
- Specified by:
getI18NBeanin interfaceI18NBeanFactory- Returns:
- i18n bean for the system default locale
-
getStateHash
- Specified by:
getStateHashin interfaceI18NBeanFactory- Returns:
- a hash of the current state of this factory.
-
setI18NBeanFactory
-
setLocaleManager
-