com.atlassian.jira.util.resourcebundle
Class DefaultResourceBundle
java.lang.Object
com.atlassian.jira.util.resourcebundle.DefaultResourceBundle
public class DefaultResourceBundle
- extends java.lang.Object
Provides access to the default ResourceBundle. That is, the bundle for "JiraWebActionSupport.properties" for the
various languanges/locales.
This class caches the ResourceBundle per locale, because the lookup is expensive and causes thread contention.
Default ResourceBundles must live in the core ClassLoader and can be cached permanently as they cannot change. This
is not so simple for custom translations for plugins (other ResourceBundles), and so they are not included here.
- Since:
- v4.0
Method Summary |
static java.util.ResourceBundle |
getDefaultResourceBundle(java.util.Locale locale)
Returns the Default Resource Bundle (JiraWebActionSupport.properties) for the given locale. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultResourceBundle
public DefaultResourceBundle()
getDefaultResourceBundle
public static java.util.ResourceBundle getDefaultResourceBundle(java.util.Locale locale)
- Returns the Default Resource Bundle (JiraWebActionSupport.properties) for the given locale.
- Parameters:
locale
- The locale.
- Returns:
- the Default Resource Bundle (JiraWebActionSupport.properties) for the given locale.
Copyright © 2002-2010 Atlassian. All Rights Reserved.