public class DefaultResourceBundle extends Object
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.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_RESOURCE_BUNDLE_NAME |
Constructor and Description |
---|
DefaultResourceBundle() |
Modifier and Type | Method and Description |
---|---|
static ResourceBundle |
getDefaultResourceBundle(Locale locale)
Returns the Default Resource Bundle (JiraWebActionSupport.properties) for the given locale.
|
static boolean |
isDefaultResourceBundleStale(Locale locale)
Returns true if and only if the default resource bundle data is
stale for the given locale.
|
public static final String DEFAULT_RESOURCE_BUNDLE_NAME
public static ResourceBundle getDefaultResourceBundle(Locale locale)
locale
- The locale.public static boolean isDefaultResourceBundleStale(Locale locale)
locale
- the locale within which to make the checkCopyright © 2002-2019 Atlassian. All Rights Reserved.