AbstractResourceBundleProvider
public interface ResourceBundleProvider
ResourceBundleProvider
is a provider interface that is used for
loading resource bundles for named modules. 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:
public interface MyResourcesProvider extends ResourceBundleProvider {
}
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 | 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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps