public class CachingResourceBundleLocator extends DelegatingResourceBundleLocator
ResourceBundleLocator implementation that wraps around another
locator and caches values retrieved from that locator.| Constructor and Description |
|---|
CachingResourceBundleLocator(ResourceBundleLocator delegate)
Creates a new CachingResourceBundleLocator.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceBundle |
getResourceBundle(Locale locale)
Returns a resource bundle for the given locale.
|
public CachingResourceBundleLocator(ResourceBundleLocator delegate)
delegate - The locator from which the values actually will be retrieved.public ResourceBundle getResourceBundle(Locale locale)
ResourceBundleLocatorgetResourceBundle in interface ResourceBundleLocatorgetResourceBundle in class DelegatingResourceBundleLocatorlocale - A locale, for which a resource bundle shall be retrieved. Must
not be null.Copyright © 2018 JBoss by Red Hat. All rights reserved.