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 Details

    • DEFAULT_I18N_BUNDLES

      public static final List<@NotNull String> DEFAULT_I18N_BUNDLES
    • XWORK_MESSAGES_BUNDLE

      public static final String XWORK_MESSAGES_BUNDLE
      See Also:
    • STRUTS_MESSAGES_BUNDLE

      public static final String STRUTS_MESSAGES_BUNDLE
      See Also:
    • bundlesMap

      protected final ConcurrentMap<String,ResourceBundle> bundlesMap
    • devMode

      protected boolean devMode
    • reloadBundles

      protected boolean reloadBundles
    • searchDefaultBundlesFirst

      protected boolean searchDefaultBundlesFirst
  • Method Details

    • getInstance

      public static PluginAwareStrutsLocalizedTextProvider getInstance()
    • clearAndAddDefaultResourceBundle

      public void clearAndAddDefaultResourceBundle(String bundleName)
    • setContainer

      public void setContainer(org.apache.struts2.inject.Container container)
    • findDefaultText

      public String findDefaultText(String textKey, Locale locale)
      Specified by:
      findDefaultText in interface org.apache.struts2.text.LocalizedTextProvider
    • setDelegatedClassLoader

      public void setDelegatedClassLoader(ClassLoader classLoader)
    • findResourceBundle

      public ResourceBundle findResourceBundle(String bundleName, Locale locale)
      Specified by:
      findResourceBundle in interface org.apache.struts2.text.LocalizedTextProvider
    • addDefaultResourceBundle

      public void addDefaultResourceBundle(String arg0)
      Specified by:
      addDefaultResourceBundle in interface org.apache.struts2.text.LocalizedTextProvider
    • getCurrentBundleNames

      protected List<String> getCurrentBundleNames()
    • getCurrentThreadContextClassLoader

      protected ClassLoader getCurrentThreadContextClassLoader()
    • setCustomI18NResources

      public void setCustomI18NResources(String arg0)
    • findDefaultText

      public String findDefaultText(String arg0, Locale arg1, Object[] arg2)
      Specified by:
      findDefaultText in interface org.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:
      findText in interface org.apache.struts2.text.LocalizedTextProvider
    • clearBundle

      protected void clearBundle(String arg0, Locale arg1)
    • clearMissingBundlesCache

      protected void clearMissingBundlesCache()
    • reloadBundles

      protected void reloadBundles()
    • reloadBundles

      protected void reloadBundles(Map<String,Object> arg0)
    • buildMessageFormat

      protected MessageFormat buildMessageFormat(String arg0, Locale arg1)
    • formatWithNullDetection

      protected String formatWithNullDetection(MessageFormat arg0, Object[] arg1)
    • setReloadBundles

      public void setReloadBundles(String arg0)
    • setDevMode

      public void setDevMode(String arg0)
    • setSearchDefaultBundlesFirst

      public void setSearchDefaultBundlesFirst(String arg0)
    • unableToFindTextForKey

      protected boolean unableToFindTextForKey(org.apache.struts2.text.AbstractLocalizedTextProvider.GetDefaultMessageReturnArg arg0)
    • getDefaultMessage

      protected org.apache.struts2.text.AbstractLocalizedTextProvider.GetDefaultMessageReturnArg getDefaultMessage(String arg0, Locale arg1, org.apache.struts2.util.ValueStack arg2, Object[] arg3, String arg4)
    • getDefaultMessageWithAlternateKey

      protected org.apache.struts2.text.AbstractLocalizedTextProvider.GetDefaultMessageReturnArg getDefaultMessageWithAlternateKey(String arg0, String arg1, Locale arg2, org.apache.struts2.util.ValueStack arg3, Object[] arg4, String arg5)
    • getMessage

      protected String getMessage(String arg0, Locale arg1, String arg2, org.apache.struts2.util.ValueStack arg3, Object[] arg4)
    • findMessage

      protected String findMessage(Class<?> arg0, String arg1, String arg2, Locale arg3, Object[] arg4, Set<String> arg5, org.apache.struts2.util.ValueStack arg6)
    • extractIndexedName

      protected String extractIndexedName(String arg0)
    • logMissingText

      protected void logMissingText(Class<?> arg0, String arg1, Locale arg2, org.apache.struts2.text.AbstractLocalizedTextProvider.GetDefaultMessageReturnArg arg3, String arg4)