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 Details

    • getBundle

      ResourceBundle getBundle(String baseName) throws IOException
      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 file
      SecurityException - if read file permissions are not granted for <ddf.home>/etc/i18n/
      IOException - if an error occurs while reading or parsing the file
    • getBundle

      ResourceBundle getBundle(String baseName, Locale locale) throws IOException
      Retrieves a resource bundle for a given properties file
      Parameters:
      baseName - The base name of the resource bundle
      locale - 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 file
      SecurityException - if read file permissions are not granted for <ddf.home>/etc/i18n/
      IOException - if an error occurs while reading or parsing the file