|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HibernateValidatorConfiguration
Uniquely identifies Hibernate Validator in the Bean Validation bootstrap strategy. Also contains Hibernate Validator specific configurations.
| Method Summary | |
|---|---|
ResourceBundleLocator |
getDefaultResourceBundleLocator()
Returns the ResourceBundleLocator used by the
default message
interpolator to load user-provided resource bundles. |
| Methods inherited from interface javax.validation.Configuration |
|---|
addMapping, addProperty, buildValidatorFactory, constraintValidatorFactory, getDefaultConstraintValidatorFactory, getDefaultMessageInterpolator, getDefaultTraversableResolver, ignoreXmlConfiguration, messageInterpolator, traversableResolver |
| Method Detail |
|---|
ResourceBundleLocator getDefaultResourceBundleLocator()
Returns the ResourceBundleLocator used by the
default message
interpolator to load user-provided resource bundles. In conformance with
the specification this default locator retrieves the bundle
"ValidationMessages".
This locator can be used as delegate for custom locators when setting a
customized ResourceBundleMessageInterpolator:
HibernateValidatorConfiguration configure =
Validation.byProvider(HibernateValidator.class).configure();
<p/>
ResourceBundleLocator defaultResourceBundleLocator =
configure.getDefaultResourceBundleLocator();
ResourceBundleLocator myResourceBundleLocator =
new MyResourceBundleLocator(defaultResourceBundleLocator);
<p/>
configure.messageInterpolator(
new ResourceBundleMessageInterpolator(myResourceBundleLocator));
ResourceBundleLocator. Never null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||