Top Description Methods
org.hibernate.validator.spi.scripting

public Interface ScriptEvaluatorFactory

Known Direct Implementers
org.hibernate.validator.spi.scripting.AbstractCachingScriptEvaluatorFactory
Annotations
@Incubating
Imports
jakarta.validation.ValidatorFactory, org.hibernate.validator.Incubating, org.hibernate.validator.constraints.ParameterScriptAssert, .ScriptAssert

Factory used to initialize the ScriptEvaluators required to evaluate script expressions defined in ScriptAssert and ParameterScriptAssert constraints.
Author
Marko Bekhta
Since
6.0.3

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Clear the state of the factory.

public ScriptEvaluator

Returns:

a script executor for the given language. Never null.
getScriptEvaluatorByLanguageName
(String
the name of a scripting language
languageName
)

Retrieves a script evaluator ScriptEvaluator for the given language.

Method Detail

clearback to summary
public void clear()

Clear the state of the factory.

Called when the ValidatorFactory is closed.

getScriptEvaluatorByLanguageNameback to summary
public ScriptEvaluator getScriptEvaluatorByLanguageName(String languageName)

Retrieves a script evaluator ScriptEvaluator for the given language.

Parameters
languageName:String

the name of a scripting language

Returns:ScriptEvaluator

a script executor for the given language. Never null.

Exceptions
ScriptEvaluatorNotFoundException:
in case no ScriptEvaluator was found for a given languageName.