MessageSource that accesses the resource bundles with the specified basenames.
This class relies on the underlying JDK's java.util.ResourceBundle
implementation, in combination with the standard message parsing provided by
java.text.MessageFormat.
This MessageSource caches both the accessed ResourceBundle instances and
the generated MessageFormats for each message. It also implements rendering of
no-arg messages without MessageFormat, as supported by the AbstractMessageSource
base class. The caching provided by this MessageSource is significantly faster
than the built-in caching of the java.util.ResourceBundle class.
Unfortunately, java.util.ResourceBundle caches loaded bundles
forever: Reloading a bundle during VM execution is not possible.
As this MessageSource relies on ResourceBundle, it faces the same limitation.
Consider ReloadableResourceBundleMessageSource for an alternative that is
capable of refreshing the underlying bundle files.
java.util.ResourceBundleimplementation, in combination with the standard message parsing provided byjava.text.MessageFormat.This MessageSource caches both the accessed ResourceBundle instances and the generated MessageFormats for each message. It also implements rendering of no-arg messages without MessageFormat, as supported by the AbstractMessageSource base class. The caching provided by this MessageSource is significantly faster than the built-in caching of the
java.util.ResourceBundleclass.Unfortunately,
java.util.ResourceBundlecaches loaded bundles forever: Reloading a bundle during VM execution is not possible. As this MessageSource relies on ResourceBundle, it faces the same limitation. Consider ReloadableResourceBundleMessageSource for an alternative that is capable of refreshing the underlying bundle files.