Package com.atlassian.jira.util
Class NoopI18nFactory
java.lang.Object
com.atlassian.jira.util.NoopI18nFactory
- All Implemented Interfaces:
I18nHelper.BeanFactory
A factory for
NoopI18nHelper objects.- Since:
- v4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInstance(ApplicationUser user) Returns anI18nHelperinstance associated with the providedUser's locale preference.getInstance(Locale locale) Returns anI18nHelperinstance associated with the providedLocale.
-
Constructor Details
-
NoopI18nFactory
public NoopI18nFactory()
-
-
Method Details
-
getInstance
Description copied from interface:I18nHelper.BeanFactoryReturns anI18nHelperinstance associated with the providedLocale. Note that since JIRA 6.0 you can have anI18nHelperinjected directly into your class, and it will be specific to the currently logged in user.- Specified by:
getInstancein interfaceI18nHelper.BeanFactory- Parameters:
locale- the locale in play- Returns:
- an
I18nHelperinstance associated with the providedLocale
-
getInstance
Description copied from interface:I18nHelper.BeanFactoryReturns anI18nHelperinstance associated with the providedUser's locale preference. Note that since JIRA 6.0 you can have anI18nHelperinjected directly into your class, and it will be specific to the currently logged in user.- Specified by:
getInstancein interfaceI18nHelper.BeanFactory- Parameters:
user- the user in play- Returns:
- an
I18nHelperinstance associated with the providedUser's locale preference
-