Package com.atlassian.bamboo.sal.message
Class BambooI18nResolver
- java.lang.Object
-
- com.atlassian.bamboo.sal.message.BambooI18nResolver
-
- All Implemented Interfaces:
com.atlassian.sal.api.message.I18nResolver
public class BambooI18nResolver extends Object implements com.atlassian.sal.api.message.I18nResolver
TODO force OSGi to load properly i18nResolver component exported by atlassian-bamboo-sal-message plugin and remove this class
-
-
Constructor Summary
Constructors Constructor Description BambooI18nResolver(I18nBeanFactory i18nBeanFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.sal.api.message.Message
createMessage(String key, Serializable... arguments)
com.atlassian.sal.api.message.MessageCollection
createMessageCollection()
Map<String,String>
getAllTranslationsForPrefix(String prefix)
Map<String,String>
getAllTranslationsForPrefix(String prefix, Locale locale)
String
getRawText(String key)
String
getRawText(Locale locale, String key)
String
getText(com.atlassian.sal.api.message.Message message)
String
getText(String key)
String
getText(String key, Serializable... arguments)
String
getText(Locale locale, com.atlassian.sal.api.message.Message message)
String
getText(Locale locale, String key)
String
getText(Locale locale, String key, Serializable... arguments)
-
-
-
Constructor Detail
-
BambooI18nResolver
public BambooI18nResolver(I18nBeanFactory i18nBeanFactory)
-
-
Method Detail
-
getText
public String getText(String key, Serializable... arguments)
- Specified by:
getText
in interfacecom.atlassian.sal.api.message.I18nResolver
-
getText
public String getText(Locale locale, String key, Serializable... arguments)
- Specified by:
getText
in interfacecom.atlassian.sal.api.message.I18nResolver
-
getText
public String getText(String key)
- Specified by:
getText
in interfacecom.atlassian.sal.api.message.I18nResolver
-
getText
public String getText(Locale locale, String key)
- Specified by:
getText
in interfacecom.atlassian.sal.api.message.I18nResolver
-
getText
public String getText(com.atlassian.sal.api.message.Message message)
- Specified by:
getText
in interfacecom.atlassian.sal.api.message.I18nResolver
-
getText
public String getText(Locale locale, com.atlassian.sal.api.message.Message message)
- Specified by:
getText
in interfacecom.atlassian.sal.api.message.I18nResolver
-
createMessage
public com.atlassian.sal.api.message.Message createMessage(String key, Serializable... arguments)
- Specified by:
createMessage
in interfacecom.atlassian.sal.api.message.I18nResolver
-
createMessageCollection
public com.atlassian.sal.api.message.MessageCollection createMessageCollection()
- Specified by:
createMessageCollection
in interfacecom.atlassian.sal.api.message.I18nResolver
-
getAllTranslationsForPrefix
public Map<String,String> getAllTranslationsForPrefix(String prefix, Locale locale)
- Specified by:
getAllTranslationsForPrefix
in interfacecom.atlassian.sal.api.message.I18nResolver
-
getAllTranslationsForPrefix
public Map<String,String> getAllTranslationsForPrefix(String prefix)
- Specified by:
getAllTranslationsForPrefix
in interfacecom.atlassian.sal.api.message.I18nResolver
-
getRawText
public String getRawText(String key)
- Specified by:
getRawText
in interfacecom.atlassian.sal.api.message.I18nResolver
-
-