ResourceBundleLocator implementation that wraps around another
locator and caches values retrieved from that locator.
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| public | CachingResourceBundleLocator(ResourceBundleLocator
The locator from which the values actually will be retrieved. delegate)Creates a new CachingResourceBundleLocator. |
| Modifier and Type | Method and Description |
|---|---|
| public ResourceBundle | getResourceBundle(Locale
A locale, for which a resource bundle shall be retrieved. Must
not be null. locale)Overrides org. Implements org. |
| bundleCache | back to summary |
|---|---|
| private final ConcurrentMap<Locale, ResourceBundle> bundleCache | |
| CachingResourceBundleLocator | back to summary |
|---|---|
| public CachingResourceBundleLocator(ResourceBundleLocator delegate) Creates a new CachingResourceBundleLocator.
| |
| getResourceBundle | back to summary |
|---|---|
| public ResourceBundle getResourceBundle(Locale locale) Overrides org. Implements org. Doc from org. Returns a resource bundle for the given locale.
| |