@Incubating public interface HibernateConstraintValidatorInitializationContext
Modifier and Type | Method and Description |
---|---|
ClockProvider |
getClockProvider()
Returns the provider for obtaining the current time in the form of a
Clock , e.g. |
ScriptEvaluator |
getScriptEvaluatorForLanguage(String languageName)
Returns a
ScriptEvaluator created by the ScriptEvaluatorFactory
passed at bootstrap. |
Duration |
getTemporalValidationTolerance()
Returns the temporal validation tolerance i.e.
|
ScriptEvaluator getScriptEvaluatorForLanguage(String languageName)
ScriptEvaluator
created by the ScriptEvaluatorFactory
passed at bootstrap.languageName
- the name of the scripting languageScriptEvaluatorNotFoundException
- in case no ScriptEvaluator
was
found for a given languageName
ClockProvider getClockProvider()
Clock
, e.g. when validating the
Future
and Past
constraints.null
. If no specific provider has been
configured during bootstrap, a default implementation using the current system time and the current default time
zone as returned by Clock.systemDefaultZone()
will be returned.@Incubating Duration getTemporalValidationTolerance()
Copyright © 2021 JBoss by Red Hat. All rights reserved.