public class

NoopI18nFactory

extends Object
implements I18nHelper.BeanFactory
java.lang.Object
   ↳ com.atlassian.jira.util.NoopI18nFactory

Class Overview

A factory for NoopI18nHelper objects.

Summary

Public Constructors
NoopI18nFactory()
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 NoopI18nFactory ()

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