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)
Deprecated.
Will be removed in a future release. Use
CachingResourceBundleLocator(ResourceBundleLocator)
instead. |
CachingResourceBundleLocator(ResourceBundleLocator delegate)
Creates a new CachingResourceBundleLocator.
|
@Deprecated public CachingResourceBundleLocator(ResourceBundleLocator delegate)
CachingResourceBundleLocator(ResourceBundleLocator)
instead.delegate
- The locator from which the values actually will be retrieved.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 © 2018 JBoss by Red Hat. All rights reserved.