com.taco.util
Interface IResourceBundleFactory

All Known Implementing Classes:
AbstractResourceBundleFactory, ChainedResourceBundleFactory, ResourceBundleFactory

public interface IResourceBundleFactory

An interface that specifies the creation and invalidation of resource bundles. Implementations of this class are expected to be thread-safe.


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.
 java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader, java.util.Locale defaultLocale)
          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.
 void invalidateBundles(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader, java.util.Locale defaultBundle)
          If resource bundles are cached, ensure that calls to getBundle() will reload the bundles corresponding to the argument basename, locale, and class loader.
 

Method Detail

getBundle

java.util.ResourceBundle getBundle(java.lang.String baseName)
                                   throws java.util.MissingResourceException
Get the bundle using the argument basename, using the default locale. Use the system class loader.

Throws:
java.util.MissingResourceException

getBundle

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

Throws:
java.util.MissingResourceException

getBundle

java.util.ResourceBundle getBundle(java.lang.String baseName,
                                   java.lang.ClassLoader loader)
                                   throws java.util.MissingResourceException
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.

Throws:
java.util.MissingResourceException

getBundle

java.util.ResourceBundle getBundle(java.lang.String baseName,
                                   java.util.Locale locale,
                                   java.lang.ClassLoader loader)
                                   throws java.util.MissingResourceException
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.

Throws:
java.util.MissingResourceException

getBundle

java.util.ResourceBundle getBundle(java.lang.String baseName,
                                   java.util.Locale locale,
                                   java.lang.ClassLoader loader,
                                   java.util.Locale defaultLocale)
                                   throws java.util.MissingResourceException
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.

Throws:
java.util.MissingResourceException

invalidateBundles

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.


invalidateBundles

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.


invalidateBundles

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.


invalidateBundles

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