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