|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.rave.web.ui.util.ResourceBundleManager
public class ResourceBundleManager
This class caches ResourceBundle objects per locale.
Constructor Summary | |
---|---|
protected |
ResourceBundleManager()
Use getInstance() to obtain an instance. |
Method Summary | |
---|---|
protected void |
addCachedBundle(java.lang.String baseName,
java.util.Locale locale,
java.util.ResourceBundle bundle)
This method adds a ResourceBundle to the cache. |
java.util.ResourceBundle |
getBundle(java.lang.String baseName,
java.util.Locale locale)
This method obtains the requested resource bundle as specified by the given basename and locale. |
java.util.ResourceBundle |
getBundle(java.lang.String baseName,
java.util.Locale locale,
java.lang.ClassLoader loader)
This method obtains the requested resource bundle as specified by the given basename, locale, and classloader. |
protected java.util.ResourceBundle |
getCachedBundle(java.lang.String baseName,
java.util.Locale locale)
This method checks the cache for the requested resource bundle. |
protected java.lang.String |
getCacheKey(java.lang.String baseName,
java.util.Locale locale)
This method generates a unique key for setting / getting Resources bundles from the cache. |
static ResourceBundleManager |
getInstance()
Use this method to get the instance of this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ResourceBundleManager()
Method Detail |
---|
public static ResourceBundleManager getInstance()
protected java.util.ResourceBundle getCachedBundle(java.lang.String baseName, java.util.Locale locale)
baseName
- Name of the bundlelocale
- The locale
protected java.lang.String getCacheKey(java.lang.String baseName, java.util.Locale locale)
protected void addCachedBundle(java.lang.String baseName, java.util.Locale locale, java.util.ResourceBundle bundle)
public java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale)
public java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |