| java.lang.Object com.sun.rave.web.ui.util.ResourceBundleManager
ResourceBundleManager | public class ResourceBundleManager (Code) | | This class caches ResourceBundle objects per locale.
author: Ken Paulsen (ken.paulsen@sun.com) |
ResourceBundleManager | protected ResourceBundleManager()(Code) | | Use getInstance() to obtain an instance.
|
getBundle | public ResourceBundle getBundle(String baseName, Locale locale)(Code) | | This method obtains the requested resource bundle as specified by the
given basename and locale.
|
getCacheKey | protected String getCacheKey(String baseName, Locale locale)(Code) | | This method generates a unique key for setting / getting Resources
bundles from the cache. It is important to have different keys per
locale (obviously).
|
getCachedBundle | protected ResourceBundle getCachedBundle(String baseName, Locale locale)(Code) | | This method checks the cache for the requested resource bundle.
Parameters: baseName - Name of the bundle Parameters: locale - The locale The requested ResourceBundle in the most appropriate locale. |
|
|