public interface ResourceBundleProvider
ResourceBundleProvider
is a provider interface that is used for
loading resource bundles. Implementation classes of this interface are loaded
with ServiceLoader
during a call to the
ResourceBundle.getBundle
method. The provider service type is determined by
basename+"Provider"
. For example, if the base name is
"com.example.app.MyResources", com.example.app.MyResourcesProvider
will be the provider service type.
This providers's getBundle
method is called
through the resource bundle loading process instead of ResourceBundle.Control.newBundle()
. Refer to ResourceBundle
for
details.
Modifier and Type | Method and Description |
---|---|
ResourceBundle |
getBundle(String baseName,
Locale locale)
Returns a
ResourceBundle for the given bundle name and locale. |
ResourceBundle getBundle(String baseName, Locale locale)
ResourceBundle
for the given bundle name and locale.
This method returns null if there is no ResourceBundle
found
for the given parameters.baseName
- the base bundle name of the resource bundle, a fully
qualified class namelocale
- the locale for which the resource bundle should be loadedResourceBundle
for the given parameters is found Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-03-31-172659.buildd.src