Package com.atlassian.jira.message
Class MessageUtilFactory
java.lang.Object
com.atlassian.jira.message.MessageUtilFactory
- All Implemented Interfaces:
MessageUtil.Factory
Factory responsible for creating a
MessageUtil
.- Since:
- 7.0
-
Constructor Summary
ConstructorsConstructorDescriptionMessageUtilFactory
(JiraAuthenticationContext context, I18nHelper.BeanFactory i1BeanFactory, ExternalLinkUtil externalLinkUtil, HelpUrls helpUrls, BaseUrl baseUrl) -
Method Summary
Modifier and TypeMethodDescriptionCreate aMessageUtil
for the current logged-in user.Create aMessageUtil
using the specified user's locale.getNewInstance
(Locale locale) Create aMessageUtil
using the specified locale.
-
Constructor Details
-
MessageUtilFactory
public MessageUtilFactory(JiraAuthenticationContext context, I18nHelper.BeanFactory i1BeanFactory, ExternalLinkUtil externalLinkUtil, HelpUrls helpUrls, BaseUrl baseUrl)
-
-
Method Details
-
getNewInstance
Description copied from interface:MessageUtil.Factory
Create aMessageUtil
for the current logged-in user.- Specified by:
getNewInstance
in interfaceMessageUtil.Factory
- Returns:
- MessageUtil set to the locale of the current logged-in user.
-
getNewInstance
Description copied from interface:MessageUtil.Factory
Create aMessageUtil
using the specified user's locale.- Specified by:
getNewInstance
in interfaceMessageUtil.Factory
- Returns:
- MessageUtil set to the locale of the specified user.
-
getNewInstance
Description copied from interface:MessageUtil.Factory
Create aMessageUtil
using the specified locale.- Specified by:
getNewInstance
in interfaceMessageUtil.Factory
- Returns:
- MessageUtil based on the specified locale.
-