public static class

MockI18nBean.MockI18nBeanFactory

extends Object
implements I18nHelper.BeanFactory
java.lang.Object
   ↳ com.atlassian.jira.web.bean.MockI18nBean.MockI18nBeanFactory

Summary

Public Constructors
MockI18nBeanFactory()
Public Methods
I18nHelper getInstance(Locale locale)
Returns an I18nHelper instance associated with the provided Locale.
I18nHelper getInstance(ApplicationUser user)
Returns an I18nHelper instance associated with the provided User's locale preference.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.util.I18nHelper.BeanFactory

Public Constructors

public MockI18nBeanFactory ()

Public Methods

public I18nHelper getInstance (Locale locale)

Returns an I18nHelper instance associated with the provided Locale. 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.

Parameters
locale the locale in play
Returns

public I18nHelper getInstance (ApplicationUser user)

Returns an I18nHelper instance associated with the provided User's locale preference. 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.

Parameters
user the user in play
Returns
  • an I18nHelper instance associated with the provided User's locale preference