com.taco.util
Class AbstractResourceBundleFactory

java.lang.Object
  extended by com.taco.util.AbstractResourceBundleFactory
All Implemented Interfaces:
IResourceBundleFactory
Direct Known Subclasses:
ChainedResourceBundleFactory, ResourceBundleFactory

public abstract class AbstractResourceBundleFactory
extends java.lang.Object
implements IResourceBundleFactory

An abstract implementation of IResourceBundleFactory that has provides implementations of methods that simply call other methods with default arguments.


Constructor Summary
AbstractResourceBundleFactory()
           
 
Method Summary
 java.util.ResourceBundle getBundle(java.lang.String baseName)
          Get the bundle using the argument basename, using the default locale.
 java.util.ResourceBundle getBundle(java.lang.String baseName, java.lang.ClassLoader loader)
          Get the bundle using the argument basename and class loader, using the default locale.
 java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale)
          Get the bundle using the argument basename and locale, using the Locale.getDefault() as the default locale.
 java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader)
          Get the bundle using the argument basename, locale, and class loader.
 void invalidateBundles(java.lang.String baseName)
          If resource bundles are cached, ensure that calls to getBundle() will reload the bundles corresponding to the argument basename, the default locale, and the system class loader.
 void invalidateBundles(java.lang.String baseName, java.lang.ClassLoader loader)
          If resource bundles are cached, ensure that calls to getBundle() will reload the bundles corresponding to the argument basename, the default locale, and the argument class loader.
 void invalidateBundles(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader)
          If resource bundles are cached, ensure that calls to getBundle() will reload the bundles corresponding to the argument basename, locale, and class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.taco.util.IResourceBundleFactory
getBundle, invalidateBundles
 

Constructor Detail

AbstractResourceBundleFactory

public AbstractResourceBundleFactory()
Method Detail

getBundle

public java.util.ResourceBundle getBundle(java.lang.String baseName)
Description copied from interface: IResourceBundleFactory
Get the bundle using the argument basename, using the default locale. Use the system class loader.

Specified by:
getBundle in interface IResourceBundleFactory

getBundle

public java.util.ResourceBundle getBundle(java.lang.String baseName,
                                          java.util.Locale locale)
                                   throws java.util.MissingResourceException
Description copied from interface: IResourceBundleFactory
Get the bundle using the argument basename and locale, using the Locale.getDefault() as the default locale. Use the system class loader.

Specified by:
getBundle in interface IResourceBundleFactory
Throws:
java.util.MissingResourceException

getBundle

public java.util.ResourceBundle getBundle(java.lang.String baseName,
                                          java.lang.ClassLoader loader)
                                   throws java.util.MissingResourceException
Description copied from interface: IResourceBundleFactory
Get the bundle using the argument basename and class loader, using the default locale. Note: the class loader may be null, to indicate the system class loader is to be used, or the caller may pass getClass().getClassLoader() to use the class loader of the caller's class.

Specified by:
getBundle in interface IResourceBundleFactory
Throws:
java.util.MissingResourceException

getBundle

public java.util.ResourceBundle getBundle(java.lang.String baseName,
                                          java.util.Locale locale,
                                          java.lang.ClassLoader loader)
                                   throws java.util.MissingResourceException
Description copied from interface: IResourceBundleFactory
Get the bundle using the argument basename, locale, and class loader. Note: the class loader may be null, to indicate the system class loader is to be used, or the caller may pass getClass().getClassLoader() to use the class loader of the caller's class.

Specified by:
getBundle in interface IResourceBundleFactory
Throws:
java.util.MissingResourceException

invalidateBundles

public void invalidateBundles(java.lang.String baseName)
Description copied from interface: IResourceBundleFactory
If resource bundles are cached, ensure that calls to getBundle() will reload the bundles corresponding to the argument basename, the default locale, and the system class loader.

Specified by:
invalidateBundles in interface IResourceBundleFactory

invalidateBundles

public void invalidateBundles(java.lang.String baseName,
                              java.lang.ClassLoader loader)
Description copied from interface: IResourceBundleFactory
If resource bundles are cached, ensure that calls to getBundle() will reload the bundles corresponding to the argument basename, the default locale, and the argument class loader.

Specified by:
invalidateBundles in interface IResourceBundleFactory

invalidateBundles

public void invalidateBundles(java.lang.String baseName,
                              java.util.Locale locale,
                              java.lang.ClassLoader loader)
Description copied from interface: IResourceBundleFactory
If resource bundles are cached, ensure that calls to getBundle() will reload the bundles corresponding to the argument basename, locale, and class loader.

Specified by:
invalidateBundles in interface IResourceBundleFactory