de.smartics.exceptions.i18n.message
Class ClassPathBundleProvider
java.lang.Object
de.smartics.exceptions.i18n.message.ClassPathBundleProvider
-
All Implemented Interfaces:
-
BundleProvider
-
public class ClassPathBundleProvider
-
extends
Object
-
implements
BundleProvider
Loads bundles from the class path.
-
Author:
-
Robert Reiner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassPathBundleProvider
public ClassPathBundleProvider()
getBundle
public ResourceBundle getBundle(Locale locale,
ClassLoader loader,
String bundleBaseName)
throws MissingResourceException
-
Returns the requested bundle.
-
-
Specified by:
-
getBundle
in interface
BundleProvider
-
-
Parameters:
-
locale
- the locale to select the localized information.
-
loader
- the class loader to use.
-
bundleBaseName
- the base name of the bundle to fetch.
-
Returns:
-
the requested bundle.
-
Throws:
-
MissingResourceException
- if there is no suitable bundle with the given base name.
-
See Also:
-
BundleProvider.getBundle(java.util.Locale, java.lang.ClassLoader, java.lang.String)
Copyright © 2007-null
Kronseder & Reiner GmbH - smartics. All Rights Reserved.