Package com.atlassian.jira.util
Interface I18nHelper.BeanFactory
- All Known Implementing Classes:
CachingI18nFactory
,DelegateI18nFactory
,MockI18nBean.MockI18nBeanFactory
,MockI18nHelper.MockI18nHelperFactory
,NoopI18nFactory
- Enclosing interface:
- I18nHelper
public static interface I18nHelper.BeanFactory
Ths BeanFactory is used to instantiate
I18nHelper
instances for a specific Locale or User. Note that
since JIRA 6.0 you can have an I18nHelper
injected directly into your class, and it will be specific to
the currently logged in user.-
Method Summary
Modifier and TypeMethodDescriptiongetInstance
(ApplicationUser user) Returns anI18nHelper
instance associated with the providedUser
's locale preference.getInstance
(Locale locale) Returns anI18nHelper
instance associated with the providedLocale
.
-
Method Details
-
getInstance
Returns anI18nHelper
instance associated with the providedLocale
. Note that since JIRA 6.0 you can have anI18nHelper
injected directly into your class, and it will be specific to the currently logged in user.- Parameters:
locale
- the locale in play- Returns:
- an
I18nHelper
instance associated with the providedLocale
-
getInstance
Returns anI18nHelper
instance associated with the providedUser
's locale preference. Note that since JIRA 6.0 you can have anI18nHelper
injected directly into your class, and it will be specific to the currently logged in user.- Parameters:
user
- the user in play- Returns:
- an
I18nHelper
instance associated with the providedUser
's locale preference
-