org.springframework.validation.beanvalidation

## 类 MessageSourceResourceBundleLocator

- java.lang.Object
- - org.springframework.validation.beanvalidation.MessageSourceResourceBundleLocator

- 所有已实现的接口:
    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`.
  从以下版本开始:
    3.0.4
  作者:
    Juergen Hoeller
  另请参阅:
    `ResourceBundleLocator`, `MessageSource`, `MessageSourceResourceBundle`

- - ### 构造器概要

    构造器
    构造器和说明
    `MessageSourceResourceBundleLocator(MessageSource messageSource)` Build a MessageSourceResourceBundleLocator for the given MessageSource.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `ResourceBundle` | `getResourceBundle(Locale locale)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### MessageSourceResourceBundleLocator

          public MessageSourceResourceBundleLocator(MessageSource messageSource)

      Build a MessageSourceResourceBundleLocator for the given MessageSource.
      参数:
        `messageSource` - the Spring MessageSource to wrap

  - ### 方法详细资料

    - #### getResourceBundle

          public ResourceBundle getResourceBundle(Locale locale)

      指定者:
        `getResourceBundle` 在接口中 `org.hibernate.validator.spi.resourceloading.ResourceBundleLocator`