Package org.hibernate.validator
Interface HibernateValidatorFactory
- All Superinterfaces:
AutoCloseable
,ValidatorFactory
- All Known Subinterfaces:
PredefinedScopeHibernateValidatorFactory
Provides Hibernate Validator extensions to
ValidatorFactory
.- Author:
- Emmanuel Bernard, Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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. the acceptable margin of error when comparing date/time in temporal constraints.Returns a context for validator configuration via options from the Bean Validation API as well as specific ones from Hibernate Validator.Methods inherited from interface jakarta.validation.ValidatorFactory
close, getClockProvider, getConstraintValidatorFactory, getMessageInterpolator, getParameterNameProvider, getTraversableResolver, getValidator, unwrap
-
Method Details
-
getScriptEvaluatorFactory
Returns the factory responsible for creatingScriptEvaluator
s used to evaluate script expressions ofScriptAssert
andParameterScriptAssert
constraints.- Returns:
- a
ScriptEvaluatorFactory
instance - Since:
- 6.0.3
-
getTemporalValidationTolerance
Returns the temporal validation tolerance i.e. the acceptable margin of error when comparing date/time in temporal constraints.- Returns:
- the tolerance
- Since:
- 6.0.5
-
getGetterPropertySelectionStrategy
Returns the getter property selection strategy defining the rules determining if a method is a getter or not.- Returns:
- the getter property selection strategy of the current
ValidatorFactory
- Since:
- 6.1.0
-
getPropertyNodeNameProvider
Returns the property node name provider used to resolve the name of a property node when creating the property path.- Returns:
- the property node name provider of the current
ValidatorFactory
- Since:
- 6.2.1
-
usingContext
HibernateValidatorContext usingContext()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 interfaceValidatorFactory
- Returns:
- A context for validator configuration.
-