java.lang.Object | ||
↳ | java.util.ResourceBundle | |
↳ | org.springframework.context.support.MessageSourceResourceBundle |
Helper class that allows for accessing a Spring
MessageSource
as a java.util.ResourceBundle.
Used for example to expose a Spring MessageSource to JSTL web views.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.ResourceBundle
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new MessageSourceResourceBundle for the given MessageSource and Locale.
| |||||||||||
Create a new MessageSourceResourceBundle for the given MessageSource and Locale.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This implementation returns
null , as a MessageSource does
not allow for enumerating the defined message codes. | |||||||||||
This implementation exposes the specified Locale for introspection
through the standard
ResourceBundle.getLocale() method. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This implementation resolves the code in the MessageSource.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.ResourceBundle
| |||||||||||
From class
java.lang.Object
|
Create a new MessageSourceResourceBundle for the given MessageSource and Locale.
source | the MessageSource to retrieve messages from |
---|---|
locale | the Locale to retrieve messages for |
Create a new MessageSourceResourceBundle for the given MessageSource and Locale.
source | the MessageSource to retrieve messages from |
---|---|
locale | the Locale to retrieve messages for |
parent | the parent ResourceBundle to delegate to if no local message found |
This implementation returns null
, as a MessageSource does
not allow for enumerating the defined message codes.
This implementation exposes the specified Locale for introspection
through the standard ResourceBundle.getLocale()
method.
This implementation resolves the code in the MessageSource.
Returns null
if the message could not be resolved.