Class MessageSourceResourceBundleLocator
java.lang.Object
org.springframework.validation.beanvalidation.MessageSourceResourceBundleLocator
- All Implemented Interfaces:
org.hibernate.validator.spi.resourceloading.ResourceBundleLocator
public class MessageSourceResourceBundleLocator
extends Object
implements org.hibernate.validator.spi.resourceloading.ResourceBundleLocator
Implementation of Hibernate Validator 4.3/5.x's
ResourceBundleLocator
interface,
exposing a Spring MessageSource
as localized MessageSourceResourceBundle
.- Since:
- 3.0.4
- Author:
- Juergen Hoeller
- See Also:
-
ResourceBundleLocator
MessageSource
MessageSourceResourceBundle
-
Constructor Summary
ConstructorDescriptionMessageSourceResourceBundleLocator
(MessageSource messageSource) Build a MessageSourceResourceBundleLocator for the given MessageSource. -
Method Summary
-
Constructor Details
-
MessageSourceResourceBundleLocator
Build a MessageSourceResourceBundleLocator for the given MessageSource.- Parameters:
messageSource
- the Spring MessageSource to wrap
-
-
Method Details
-
getResourceBundle
- Specified by:
getResourceBundle
in interfaceorg.hibernate.validator.spi.resourceloading.ResourceBundleLocator
-