com.atlassian.jira.util
Interface I18nHelper.BeanFactory

All Known Implementing Classes:
I18nBean.AccessorFactory, I18nBean.CachingFactory, MockI18nBean.MockI18nBeanFactory, NoopI18nFactory
Enclosing interface:
I18nHelper

public static interface I18nHelper.BeanFactory

Ths BeanFactory is used to instantiate I18nHelper instances for a specific Locale or User. 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.


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.
 

Method Detail

getInstance

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:
an I18nHelper instance associated with the provided Locale
See Also:
I18nHelper

getInstance

I18nHelper getInstance(com.atlassian.crowd.embedded.api.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
See Also:
I18nHelper

getInstance

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
See Also:
I18nHelper


Copyright © 2002-2013 Atlassian. All Rights Reserved.