com.atlassian.jira.util.resourcebundle
Class DefaultResourceBundle
java.lang.Object
com.atlassian.jira.util.resourcebundle.DefaultResourceBundle
public class DefaultResourceBundle
- extends 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_RESOURCE_BUNDLE_NAME
public static final String DEFAULT_RESOURCE_BUNDLE_NAME
DefaultResourceBundle
public DefaultResourceBundle()
getDefaultResourceBundle
public static ResourceBundle getDefaultResourceBundle(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-2011 Atlassian. All Rights Reserved.