Package org.hibernate.validator
Interface HibernateValidatorFactory
-
- All Superinterfaces:
AutoCloseable,ValidatorFactory
- All Known Subinterfaces:
PredefinedScopeHibernateValidatorFactory
- All Known Implementing Classes:
PredefinedScopeValidatorFactoryImpl,ValidatorFactoryImpl
public interface HibernateValidatorFactory extends ValidatorFactory
Provides Hibernate Validator extensions toValidatorFactory.- Author:
- Emmanuel Bernard, Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetterPropertySelectionStrategygetGetterPropertySelectionStrategy()Returns the getter property selection strategy defining the rules determining if a method is a getter or not.PropertyNodeNameProvidergetPropertyNodeNameProvider()Returns the property node name provider used to resolve the name of a property node when creating the property path.ScriptEvaluatorFactorygetScriptEvaluatorFactory()Returns the factory responsible for creatingScriptEvaluators used to evaluate script expressions ofScriptAssertandParameterScriptAssertconstraints.DurationgetTemporalValidationTolerance()Returns the temporal validation tolerance i.e.HibernateValidatorContextusingContext()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 Detail
-
getScriptEvaluatorFactory
@Incubating ScriptEvaluatorFactory getScriptEvaluatorFactory()
Returns the factory responsible for creatingScriptEvaluators used to evaluate script expressions ofScriptAssertandParameterScriptAssertconstraints.- Returns:
- a
ScriptEvaluatorFactoryinstance - Since:
- 6.0.3
-
getTemporalValidationTolerance
@Incubating Duration 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
@Incubating GetterPropertySelectionStrategy 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
@Incubating PropertyNodeNameProvider 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:
usingContextin interfaceValidatorFactory- Returns:
- A context for validator configuration.
-
-