public class MessageSourceResourceBundleLocator extends 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 |
---|---|
ResourceBundle |
getResourceBundle(Locale locale) |
public MessageSourceResourceBundleLocator(MessageSource messageSource)
messageSource
- the Spring MessageSource to wrappublic ResourceBundle getResourceBundle(Locale locale)
getResourceBundle
in interface org.hibernate.validator.spi.resourceloading.ResourceBundleLocator