|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.util.AbstractResourceBundleFactory
public abstract class AbstractResourceBundleFactory
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 |
---|
public AbstractResourceBundleFactory()
Method Detail |
---|
public java.util.ResourceBundle getBundle(java.lang.String baseName)
IResourceBundleFactory
getBundle
in interface IResourceBundleFactory
public java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale) throws java.util.MissingResourceException
IResourceBundleFactory
Locale.getDefault()
as the default locale. Use the system
class loader.
getBundle
in interface IResourceBundleFactory
java.util.MissingResourceException
public java.util.ResourceBundle getBundle(java.lang.String baseName, java.lang.ClassLoader loader) throws java.util.MissingResourceException
IResourceBundleFactory
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.
getBundle
in interface IResourceBundleFactory
java.util.MissingResourceException
public java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader) throws java.util.MissingResourceException
IResourceBundleFactory
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.
getBundle
in interface IResourceBundleFactory
java.util.MissingResourceException
public void invalidateBundles(java.lang.String baseName)
IResourceBundleFactory
getBundle()
will reload the bundles corresponding to the
argument basename, the default locale, and the system class loader.
invalidateBundles
in interface IResourceBundleFactory
public void invalidateBundles(java.lang.String baseName, java.lang.ClassLoader loader)
IResourceBundleFactory
getBundle()
will reload the bundles corresponding to the
argument basename, the default locale, and the argument class loader.
invalidateBundles
in interface IResourceBundleFactory
public void invalidateBundles(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader)
IResourceBundleFactory
getBundle()
will reload the bundles corresponding to the
argument basename, locale, and class loader.
invalidateBundles
in interface IResourceBundleFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |