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)
ResourceBundleLocator
getResourceBundle
in interface ResourceBundleLocator
getResourceBundle
in class DelegatingResourceBundleLocator
locale
- A locale, for which a resource bundle shall be retrieved. Must
not be null.Copyright © 2021 JBoss by Red Hat. All rights reserved.