Top Description Methods
java.util.spi

public Interface ResourceBundleControlProvider

Imports
java.util.ResourceBundle

An interface for service providers that provide implementations of java.util.ResourceBundle.Control. The default resource bundle loading behavior of the ResourceBundle.getBundle factory methods that take no java.util.ResourceBundle.Control instance can be modified with ResourceBundleControlProvider implementations.

Provider implementations are loaded from the application's class path using java.util.ServiceLoader at the first invocation of the ResourceBundle.getBundle factory method that takes no java.util.ResourceBundle.Control instance.

All ResourceBundleControlProviders are ignored in named modules.

Author
Masayoshi Okutsu
Since
1.8
See Also
ResourceBundle.getBundle, java.util.ServiceLoader#load(Class)

Method Summary

Modifier and TypeMethod and Description
public ResourceBundle.Control

Returns:

a ResourceBundle.Control instance, or null if the given baseName is not applicable to this provider.
getControl
(String
the base name of the resource bundle
baseName
)

Returns a ResourceBundle.Control instance that is used to handle resource bundle loading for the given baseName.

Method Detail

getControlback to summary
public ResourceBundle.Control getControl(String baseName)

Returns a ResourceBundle.Control instance that is used to handle resource bundle loading for the given baseName. This method must return null if the given baseName isn't handled by this provider.

Parameters
baseName:String

the base name of the resource bundle

Returns:ResourceBundle.Control

a ResourceBundle.Control instance, or null if the given baseName is not applicable to this provider.

Exceptions
NullPointerException:
if baseName is null