Package io.guise.framework
Class ResourceBundles
- java.lang.Object
-
- io.guise.framework.ResourceBundles
-
@Deprecated public class ResourceBundles extends java.lang.Object
Deprecated.Switch to using Rincl.Utilities for working with resource bundles.- Author:
- Garret Wilson
-
-
Constructor Summary
Constructors Constructor Description ResourceBundles()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.util.ResourceBundle
getResourceBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader, java.util.ResourceBundle parent, com.globalmentor.io.IO<java.util.Map<java.lang.Object,java.lang.Object>> turfResourceIO)
Deprecated.Loads a resource bundle for a given base name and locale.
-
-
-
Method Detail
-
getResourceBundle
public static java.util.ResourceBundle getResourceBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader, java.util.ResourceBundle parent, com.globalmentor.io.IO<java.util.Map<java.lang.Object,java.lang.Object>> turfResourceIO) throws java.util.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, ornull
if there should be no parent for resolving resources.turfResourceIO
- The I/O support for loading resources from a TURF representation, ornull
if TURF resource bundles are not supported.- Returns:
- A resource bundle for the given base name and locale.
- Throws:
java.util.MissingResourceException
- if no resource bundle for the specified base name can be found, or if there is an error loading the resource bundle.
-
-