Class ResourceBundleLocatorImpl

java.lang.Object
ddf.platform.resource.bundle.locator.ResourceBundleLocatorImpl
All Implemented Interfaces:
ResourceBundleLocator

public class ResourceBundleLocatorImpl extends Object implements ResourceBundleLocator
  • Constructor Details

    • ResourceBundleLocatorImpl

      public ResourceBundleLocatorImpl()
  • Method Details

    • getBundle

      public ResourceBundle getBundle(String baseName) throws IOException
      Description copied from interface: ResourceBundleLocator
      Retrieves a resource bundle for a given properties file. By default it uses the default locale for this instance of the java virtual machine
      Specified by:
      getBundle in interface ResourceBundleLocator
      Parameters:
      baseName - The base name of the resource bundle
      Returns:
      A resource bundle for the given base name
      Throws:
      IOException - if an error occurs while reading or parsing the file
    • getBundle

      public final ResourceBundle getBundle(String baseName, Locale locale) throws IOException
      Description copied from interface: ResourceBundleLocator
      Retrieves a resource bundle for a given properties file
      Specified by:
      getBundle in interface ResourceBundleLocator
      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:
      IOException - if an error occurs while reading or parsing the file