public final class ClasspathLocalizationRepository extends Object
class loader
.
This repository for a property file by building locations of the form "path/to/class_locale.properties", where "path/to/class" is created from the fully-qualified classname and all "." replaced with "/" characters, "locale" is the a variant of the locale (first the full locale, then subsequently with the last segment removed). As soon as a property file is found, its URL is returned immediately.
named with a name that matchesModifier and Type | Method and Description |
---|---|
static URL |
getLocalizationBundle(ClassLoader classLoader,
String bundleName,
Locale locale)
Obtain the URL to the properties file containing the localized messages given the supplied bundle name.
|
public static URL getLocalizationBundle(ClassLoader classLoader, String bundleName, Locale locale)
default locale
(as that is done by the calling
method.classLoader
- the classloader that should be used to load the localization bundlesbundleName
- the name of the bundle of properties; never nulllocale
- the locale for which the properties file URL is desiredCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.