Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * JBoss, Home of Professional Open Source
  * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
 package org.hibernate.validator;
Uniquely identifies Hibernate Validator in the Bean Validation bootstrap strategy. Also contains Hibernate Validator specific configurations.

Emmanuel Bernard
Gunnar Morling
Kevin Pollet <> (C) 2011 SERLI
Hardy Ferentschik
Property corresponding to the failFast(boolean) method. Accepts true or false. Defaults to false.
 	final static String FAIL_FAST = "hibernate.validator.fail_fast";

Returns the org.hibernate.validator.resourceloading.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 org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator:

 HibernateValidatorConfiguration configure =

  ResourceBundleLocator defaultResourceBundleLocator =
  ResourceBundleLocator myResourceBundleLocator =
    new MyResourceBundleLocator(defaultResourceBundleLocator);

    new ResourceBundleMessageInterpolator(myResourceBundleLocator));

Deprecation note: The return type of this method will change to org.hibernate.validator.spi.resourceloading.ResourceBundleLocator in a future release. The return value of this method should be assigned to a variable of this type.

Creates a new constraint mapping which can be used to programmatically configure the constraints for given types. After the mapping has been set up, it must be added to this configuration via addMapping(org.hibernate.validator.cfg.ConstraintMapping).

A new constraint mapping.
Adds the specified org.hibernate.validator.cfg.ConstraintMapping instance to the configuration. Constraints configured in mapping will be added to the constraints configured via annotations and/or xml.

mapping ConstraintMapping instance containing programmatic configured constraints
this following the chaining method pattern
java.lang.IllegalArgumentException if mapping is null
En- or disables the fail fast mode. When fail fast is enabled the validation will stop on the first constraint violation detected.

failFast true to enable fail fast, false otherwise.
this following the chaining method pattern
New to GrepCode? Check out our FAQ X