Class ValidatorFactoryImpl
java.lang.Object
org.hibernate.validator.internal.engine.ValidatorFactoryImpl
- All Implemented Interfaces:
ValidatorFactory
,AutoCloseable
,HibernateValidatorFactory
Factory returning initialized
Validator
instances. This is the Hibernate Validator default
implementation of the ValidatorFactory
interface.- Author:
- Emmanuel Bernard, Hardy Ferentschik, Gunnar Morling, Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI, Chris Beckey <cbeckey@paypal.com>, Guillaume Smet, Marko Bekhta
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Returns the getter property selection strategy defining the rules determining if a method is a getter or not.Returns the property node name provider used to resolve the name of a property node when creating the property path.Returns the factory responsible for creatingScriptEvaluator
s used to evaluate script expressions ofScriptAssert
andParameterScriptAssert
constraints.Returns the temporal validation tolerance i.e.boolean
boolean
<T> T
Returns a context for validator configuration via options from the Bean Validation API as well as specific ones from Hibernate Validator.
-
Constructor Details
-
ValidatorFactoryImpl
-
-
Method Details
-
getValidator
- Specified by:
getValidator
in interfaceValidatorFactory
-
getMessageInterpolator
- Specified by:
getMessageInterpolator
in interfaceValidatorFactory
-
getTraversableResolver
- Specified by:
getTraversableResolver
in interfaceValidatorFactory
-
getConstraintValidatorFactory
- Specified by:
getConstraintValidatorFactory
in interfaceValidatorFactory
-
getParameterNameProvider
- Specified by:
getParameterNameProvider
in interfaceValidatorFactory
-
getExecutableParameterNameProvider
-
getClockProvider
- Specified by:
getClockProvider
in interfaceValidatorFactory
-
getScriptEvaluatorFactory
Description copied from interface:HibernateValidatorFactory
Returns the factory responsible for creatingScriptEvaluator
s used to evaluate script expressions ofScriptAssert
andParameterScriptAssert
constraints.- Specified by:
getScriptEvaluatorFactory
in interfaceHibernateValidatorFactory
- Returns:
- a
ScriptEvaluatorFactory
instance
-
getTemporalValidationTolerance
Description copied from interface:HibernateValidatorFactory
Returns the temporal validation tolerance i.e. the acceptable margin of error when comparing date/time in temporal constraints.- Specified by:
getTemporalValidationTolerance
in interfaceHibernateValidatorFactory
- Returns:
- the tolerance
-
getGetterPropertySelectionStrategy
Description copied from interface:HibernateValidatorFactory
Returns the getter property selection strategy defining the rules determining if a method is a getter or not.- Specified by:
getGetterPropertySelectionStrategy
in interfaceHibernateValidatorFactory
- Returns:
- the getter property selection strategy of the current
ValidatorFactory
-
getPropertyNodeNameProvider
Description copied from interface:HibernateValidatorFactory
Returns the property node name provider used to resolve the name of a property node when creating the property path.- Specified by:
getPropertyNodeNameProvider
in interfaceHibernateValidatorFactory
- Returns:
- the property node name provider of the current
ValidatorFactory
-
isFailFast
public boolean isFailFast() -
isTraversableResolverResultCacheEnabled
public boolean isTraversableResolverResultCacheEnabled() -
unwrap
- Specified by:
unwrap
in interfaceValidatorFactory
-
usingContext
Description copied from interface:HibernateValidatorFactory
Returns a context for validator configuration via options from the Bean Validation API as well as specific ones from Hibernate Validator.- Specified by:
usingContext
in interfaceHibernateValidatorFactory
- Specified by:
usingContext
in interfaceValidatorFactory
- Returns:
- A context for validator configuration.
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceValidatorFactory
-
getValidatorFactoryScopedContext
-