Package com.atlassian.bamboo.plugin
Class PluginAwareStrutsLocalizedTextProvider
java.lang.Object
org.apache.struts2.text.StrutsLocalizedTextProvider
com.atlassian.bamboo.plugin.PluginAwareStrutsLocalizedTextProvider
- All Implemented Interfaces:
Serializable,org.apache.struts2.text.LocalizedTextProvider
public class PluginAwareStrutsLocalizedTextProvider
extends org.apache.struts2.text.StrutsLocalizedTextProvider
implements org.apache.struts2.text.LocalizedTextProvider
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConcurrentMap<String, ResourceBundle> protected booleanprotected booleanprotected booleanstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected MessageFormatbuildMessageFormat(String arg0, Locale arg1) voidclearAndAddDefaultResourceBundle(String bundleName) protected voidclearBundle(String arg0, Locale arg1) protected voidprotected StringextractIndexedName(String arg0) findDefaultText(String textKey, Locale locale) findDefaultText(String arg0, Locale arg1, Object[] arg2) protected StringfindMessage(Class<?> arg0, String arg1, String arg2, Locale arg3, Object[] arg4, Set<String> arg5, org.apache.struts2.util.ValueStack arg6) findResourceBundle(String bundleName, Locale locale) findText(ResourceBundle arg0, String arg1, Locale arg2, String arg3, Object[] arg4, org.apache.struts2.util.ValueStack arg5) protected StringformatWithNullDetection(MessageFormat arg0, Object[] arg1) protected ClassLoaderprotected org.apache.struts2.text.AbstractLocalizedTextProvider.GetDefaultMessageReturnArggetDefaultMessage(String arg0, Locale arg1, org.apache.struts2.util.ValueStack arg2, Object[] arg3, String arg4) protected org.apache.struts2.text.AbstractLocalizedTextProvider.GetDefaultMessageReturnArggetDefaultMessageWithAlternateKey(String arg0, String arg1, Locale arg2, org.apache.struts2.util.ValueStack arg3, Object[] arg4, String arg5) protected StringgetMessage(String arg0, Locale arg1, String arg2, org.apache.struts2.util.ValueStack arg3, Object[] arg4) protected voidlogMissingText(Class<?> arg0, String arg1, Locale arg2, org.apache.struts2.text.AbstractLocalizedTextProvider.GetDefaultMessageReturnArg arg3, String arg4) protected voidprotected voidreloadBundles(Map<String, Object> arg0) voidsetContainer(org.apache.struts2.inject.Container container) voidsetCustomI18NResources(String arg0) voidsetDelegatedClassLoader(ClassLoader classLoader) voidsetDevMode(String arg0) voidsetReloadBundles(String arg0) voidprotected booleanunableToFindTextForKey(org.apache.struts2.text.AbstractLocalizedTextProvider.GetDefaultMessageReturnArg arg0) Methods inherited from class org.apache.struts2.text.StrutsLocalizedTextProvider
findText, findText, findText, findText, findText, setReflectionProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.text.LocalizedTextProvider
addDefaultResourceBundle, findDefaultText, findText, findText, findText, findText, findText, findText
-
Field Details
-
DEFAULT_I18N_BUNDLES
-
XWORK_MESSAGES_BUNDLE
- See Also:
-
STRUTS_MESSAGES_BUNDLE
- See Also:
-
bundlesMap
-
devMode
protected boolean devMode -
reloadBundles
protected boolean reloadBundles -
searchDefaultBundlesFirst
protected boolean searchDefaultBundlesFirst
-
-
Method Details
-
getInstance
-
clearAndAddDefaultResourceBundle
-
setContainer
public void setContainer(org.apache.struts2.inject.Container container) -
findDefaultText
- Specified by:
findDefaultTextin interfaceorg.apache.struts2.text.LocalizedTextProvider
-
setDelegatedClassLoader
-
findResourceBundle
- Specified by:
findResourceBundlein interfaceorg.apache.struts2.text.LocalizedTextProvider
-
addDefaultResourceBundle
- Specified by:
addDefaultResourceBundlein interfaceorg.apache.struts2.text.LocalizedTextProvider
-
getCurrentBundleNames
-
getCurrentThreadContextClassLoader
-
setCustomI18NResources
-
findDefaultText
- Specified by:
findDefaultTextin interfaceorg.apache.struts2.text.LocalizedTextProvider
-
findText
public String findText(ResourceBundle arg0, String arg1, Locale arg2, String arg3, Object[] arg4, org.apache.struts2.util.ValueStack arg5) - Specified by:
findTextin interfaceorg.apache.struts2.text.LocalizedTextProvider
-
clearBundle
-
clearMissingBundlesCache
protected void clearMissingBundlesCache() -
reloadBundles
protected void reloadBundles() -
reloadBundles
-
buildMessageFormat
-
formatWithNullDetection
-
setReloadBundles
-
setDevMode
-
setSearchDefaultBundlesFirst
-
unableToFindTextForKey
protected boolean unableToFindTextForKey(org.apache.struts2.text.AbstractLocalizedTextProvider.GetDefaultMessageReturnArg arg0) -
getDefaultMessage
-
getDefaultMessageWithAlternateKey
-
getMessage
-
findMessage
-
extractIndexedName
-
logMissingText
-