|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.i18n.DelegateI18nFactory
public class DelegateI18nFactory
Small delegate around the CachingI18nHelperFactory that is registered in pico as the actual I18nHelper.BeanFactory
Constructor Summary | |
---|---|
DelegateI18nFactory(CachingI18nFactory delegate)
|
Method Summary | |
---|---|
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 . |
I18nHelper |
getInstance(com.atlassian.crowd.embedded.api.User user)
Returns an I18nHelper instance associated with the provided User 's locale preference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegateI18nFactory(CachingI18nFactory delegate)
Method Detail |
---|
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 play
I18nHelper
instance associated with the provided Locale
I18nHelper
public I18nHelper getInstance(com.atlassian.crowd.embedded.api.User 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 play
I18nHelper
instance associated with the provided User
's locale preferenceI18nHelper
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 play
I18nHelper
instance associated with the provided User
's locale preferenceI18nHelper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |