de.hunsicker.util
Class ResourceBundleFactory

java.lang.Object
  |
  +--de.hunsicker.util.ResourceBundleFactory

public final class ResourceBundleFactory
extends java.lang.Object

Serves as the central facility to aquire ResourceBundle objects.

Version:
$Revision: 1.2 $
Author:
Marco Hunsicker

Constructor Summary
ResourceBundleFactory()
           
 
Method Summary
static java.util.ResourceBundle getBundle(java.lang.String bundleName)
          Get the appropriate resource bundle for the given name.
static java.util.Locale getLocale()
          Returns the current locale of the factory.
static void setLocale(java.util.Locale locale)
          Sets the current locale of the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundleFactory

public ResourceBundleFactory()
Method Detail

getBundle

public static java.util.ResourceBundle getBundle(java.lang.String bundleName)
Get the appropriate resource bundle for the given name.

Parameters:
bundleName - the family name of the resource bundle that contains the object in question.
Returns:
the appropriate bundle for the given name.
See Also:
ResourceBundle.getBundle(String)

setLocale

public static void setLocale(java.util.Locale locale)
Sets the current locale of the factory.

Parameters:
locale - a locale.

getLocale

public static java.util.Locale getLocale()
Returns the current locale of the factory.

Returns:
the current locale.


Copyright © 1997-2005 Jalopy. All Rights Reserved.