public class MessageSourceResourceBundleLocator extends java.lang.Object implements org.hibernate.validator.spi.resourceloading.ResourceBundleLocator
ResourceBundleLocator
interface,
exposing a Spring MessageSource
as localized MessageSourceResourceBundle
.ResourceBundleLocator
,
MessageSource
,
MessageSourceResourceBundle
Constructor and Description |
---|
MessageSourceResourceBundleLocator(MessageSource messageSource)
Build a MessageSourceResourceBundleLocator for the given MessageSource.
|
Modifier and Type | Method and Description |
---|---|
java.util.ResourceBundle |
getResourceBundle(java.util.Locale locale) |
public MessageSourceResourceBundleLocator(MessageSource messageSource)
messageSource
- the Spring MessageSource to wrappublic java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
getResourceBundle
in interface org.hibernate.validator.spi.resourceloading.ResourceBundleLocator