com.atlassian.confluence.util.i18n
Class I18NResourceBundlesLoader

java.lang.Object
  extended by com.atlassian.confluence.util.i18n.I18NResourceBundlesLoader

public class I18NResourceBundlesLoader
extends Object

Similates the behaviour of ResourceBundle.getBundle() and searches for all bundles for a locale from most specific to least specific


Field Summary
static String NOLOCALE
           
 
Constructor Summary
I18NResourceBundlesLoader()
           
 
Method Summary
static Map<String,ResourceBundle> getResourceBundles(I18NResource i18NResource, Locale locale)
          Get resource bundles keyed by locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOLOCALE

public static final String NOLOCALE
See Also:
Constant Field Values
Constructor Detail

I18NResourceBundlesLoader

public I18NResourceBundlesLoader()
Method Detail

getResourceBundles

public static Map<String,ResourceBundle> getResourceBundles(I18NResource i18NResource,
                                                            Locale locale)
Get resource bundles keyed by locale. For example: Map: {en_GB -> ResourceBundle} {en -> ResourceBundle} { -> ResourceBundle}

Parameters:
i18NResource -
locale -


Copyright © 2003-2013 Atlassian. All Rights Reserved.