Interface ResourceBundleLocator
- All Known Implementing Classes:
ResourceBundleLocatorImpl
public interface ResourceBundleLocator
Provides access to resource bundles for keyword internalization.
This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves a resource bundle for a given properties file.Retrieves a resource bundle for a given properties file
-
Method Details
-
getBundle
Retrieves a resource bundle for a given properties file. By default it uses the default locale for this instance of the java virtual machine- Parameters:
baseName- The base name of the resource bundle- Returns:
- A resource bundle for the given base name
- Throws:
MissingResourceException- if the resource bundle does not exist or if an error occurs while loading the fileSecurityException- if read file permissions are not granted for <ddf.home>/etc/i18n/IOException- if an error occurs while reading or parsing the file
-
getBundle
Retrieves a resource bundle for a given properties file- Parameters:
baseName- The base name of the resource bundlelocale- The locale of the desired resource bundle- Returns:
- A resource bundle for the given base name and locale
- Throws:
MissingResourceException- if the resource bundle does not exist or if an error occurs while loading the fileSecurityException- if read file permissions are not granted for <ddf.home>/etc/i18n/IOException- if an error occurs while reading or parsing the file
-