Class ResourceBundles

java.lang.Object
io.guise.framework.ResourceBundles

@Deprecated public class ResourceBundles extends Object
Deprecated.
Switch to using Rincl.
Utilities for working with resource bundles.
Author:
Garret Wilson
  • Constructor Details

    • ResourceBundles

      public ResourceBundles()
      Deprecated.
  • Method Details

    • getResourceBundle

      public static ResourceBundle getResourceBundle(String baseName, Locale locale, ClassLoader loader, ResourceBundle parent, com.globalmentor.io.IO<Map<Object,Object>> turfResourceIO) throws MissingResourceException
      Deprecated.
      Loads a resource bundle for a given base name and locale. This implementation recognizes properties stored in .turf, .xml, and .properties files, searching in that order. TURF property files are only used if a given TURF resource I/O instance is provided for reading from the file.
      Parameters:
      baseName - The base name of the resource bundle, which is a fully qualified class name, such as "myProperties".
      locale - The locale for which a resource bundle is desired.
      loader - The class loader from which to load the resource bundle.
      parent - The parent resource bundle, or null if there should be no parent for resolving resources.
      turfResourceIO - The I/O support for loading resources from a TURF representation, or null if TURF resource bundles are not supported.
      Returns:
      A resource bundle for the given base name and locale.
      Throws:
      MissingResourceException - if no resource bundle for the specified base name can be found, or if there is an error loading the resource bundle.