public class ValidatorContextImpl extends Object implements HibernateValidatorContext
Constructor and Description |
---|
ValidatorContextImpl(ConstraintValidatorFactory constraintValidatorFactory,
MessageInterpolator factoryMessageInterpolator,
TraversableResolver factoryTraversableResolver,
BeanMetaDataManager beanMetaDataManager,
boolean failFast) |
Modifier and Type | Method and Description |
---|---|
HibernateValidatorContext |
constraintValidatorFactory(ConstraintValidatorFactory factory) |
HibernateValidatorContext |
failFast(boolean failFast)
En- or disables the fail fast mode.
|
Validator |
getValidator() |
HibernateValidatorContext |
messageInterpolator(MessageInterpolator messageInterpolator) |
HibernateValidatorContext |
traversableResolver(TraversableResolver traversableResolver) |
public ValidatorContextImpl(ConstraintValidatorFactory constraintValidatorFactory, MessageInterpolator factoryMessageInterpolator, TraversableResolver factoryTraversableResolver, BeanMetaDataManager beanMetaDataManager, boolean failFast)
public HibernateValidatorContext messageInterpolator(MessageInterpolator messageInterpolator)
messageInterpolator
in interface ValidatorContext
messageInterpolator
in interface HibernateValidatorContext
public HibernateValidatorContext traversableResolver(TraversableResolver traversableResolver)
traversableResolver
in interface ValidatorContext
traversableResolver
in interface HibernateValidatorContext
public HibernateValidatorContext constraintValidatorFactory(ConstraintValidatorFactory factory)
constraintValidatorFactory
in interface ValidatorContext
constraintValidatorFactory
in interface HibernateValidatorContext
public HibernateValidatorContext failFast(boolean failFast)
HibernateValidatorContext
failFast
in interface HibernateValidatorContext
failFast
- true
to enable fail fast, false
otherwise.this
following the chaining method patternpublic Validator getValidator()
getValidator
in interface ValidatorContext
Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved