public class

DelegateI18nFactory

extends Object
implements I18nHelper.BeanFactory
java.lang.Object
   ↳ com.atlassian.jira.i18n.DelegateI18nFactory

Class Overview

Small delegate around the CachingI18nHelperFactory that is registered in pico as the actual I18nHelper.BeanFactory

Summary

Public Constructors
DelegateI18nFactory(CachingI18nFactory delegate)
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.
I18nHelper getInstance(User 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 DelegateI18nFactory (CachingI18nFactory delegate)

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

public I18nHelper getInstance (User 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