public class ValidatorFactoryImpl extends Object implements HibernateValidatorFactory
Validator instances. This is Hibernate Validator's default
implementation of the ValidatorFactory interface.| Constructor and Description |
|---|
ValidatorFactoryImpl(ConfigurationState configurationState) |
| Modifier and Type | Method and Description |
|---|---|
ConstraintValidatorFactory |
getConstraintValidatorFactory()
Returns the
ConstraintValidatorFactory instance
configured at initialization time for the
ValidatorFactory |
MessageInterpolator |
getMessageInterpolator()
Returns the
MessageInterpolator instance configured at
initialization time for the ValidatorFactory |
TraversableResolver |
getTraversableResolver()
Returns the
TraversableResolver instance configured
at initialization time for the ValidatorFactory |
Validator |
getValidator()
Returns an initialized
Validator instance using the
factory defaults for message interpolator, traversable resolver
and constraint validator factory. |
<T> T |
unwrap(Class<T> type)
Return an instance of the specified type allowing access to
provider-specific APIs.
|
HibernateValidatorContext |
usingContext()
Returns a context for validator configuration via options from the
Bean Validation API as well as specific ones from Hibernate Validator.
|
public ValidatorFactoryImpl(ConfigurationState configurationState)
public Validator getValidator()
ValidatorFactoryValidator instance using the
factory defaults for message interpolator, traversable resolver
and constraint validator factory.
Validator instances can be pooled and shared by the implementation.
getValidator in interface ValidatorFactoryValidator instancepublic MessageInterpolator getMessageInterpolator()
ValidatorFactoryMessageInterpolator instance configured at
initialization time for the ValidatorFactory.
This is the instance used by #getValidator().getMessageInterpolator in interface ValidatorFactorypublic TraversableResolver getTraversableResolver()
ValidatorFactoryTraversableResolver instance configured
at initialization time for the ValidatorFactory.
This is the instance used by #getValidator().getTraversableResolver in interface ValidatorFactorypublic ConstraintValidatorFactory getConstraintValidatorFactory()
ValidatorFactoryConstraintValidatorFactory instance
configured at initialization time for the
ValidatorFactory.
This is the instance used by #getValidator().getConstraintValidatorFactory in interface ValidatorFactorypublic <T> T unwrap(Class<T> type)
ValidatorFactoryValidationException, is thrown.unwrap in interface ValidatorFactorytype - the class of the object to be returned.public HibernateValidatorContext usingContext()
HibernateValidatorFactoryusingContext in interface ValidatorFactoryusingContext in interface HibernateValidatorFactoryCopyright © 2012 JBoss by Red Hat. All Rights Reserved.