public class MockI18nHelper.MockI18nHelperFactory extends Object implements I18nHelper.BeanFactory
Constructor and Description |
---|
MockI18nHelperFactory() |
Modifier and Type | Method and Description |
---|---|
I18nHelper |
getInstance(ApplicationUser user)
Returns an
I18nHelper instance associated with the provided User 's locale preference. |
I18nHelper |
getInstance(Locale locale)
Returns an
I18nHelper instance associated with the provided Locale . |
public I18nHelper getInstance(Locale locale)
I18nHelper.BeanFactory
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.getInstance
in interface I18nHelper.BeanFactory
locale
- the locale in playI18nHelper
instance associated with the provided Locale
I18nHelper
public I18nHelper getInstance(ApplicationUser user)
I18nHelper.BeanFactory
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.getInstance
in interface I18nHelper.BeanFactory
user
- the user in playI18nHelper
instance associated with the provided User
's locale preferenceI18nHelper
Copyright © 2002-2017 Atlassian. All Rights Reserved.