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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull I18NBean
@NonNull I18NBean
getI18NBean
(@NonNull Locale locale) @NonNull String
void
setI18NBeanFactory
(I18NBeanFactory i18NBeanFactory) void
setLocaleManager
(LocaleManager localeManager)
-
Constructor Details
-
UserI18NBeanFactory
public UserI18NBeanFactory()
-
-
Method Details
-
getI18NBean
- Specified by:
getI18NBean
in interfaceI18NBeanFactory
- Parameters:
locale
- locale for i18n- Returns:
- i18n bean for specified locale
-
getI18NBean
- Specified by:
getI18NBean
in interfaceI18NBeanFactory
- Returns:
- i18n bean for the system default locale
-
getStateHash
- Specified by:
getStateHash
in interfaceI18NBeanFactory
- Returns:
- a hash of the current state of this factory.
-
setI18NBeanFactory
-
setLocaleManager
-