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