Interface ScriptEvaluatorFactory
- All Known Implementing Classes:
AbstractCachingScriptEvaluatorFactory
Factory used to initialize the
ScriptEvaluator
s required to evaluate script expressions defined in
ScriptAssert
and ParameterScriptAssert
constraints.- Since:
- 6.0.3
- Author:
- Marko Bekhta
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the state of the factory.getScriptEvaluatorByLanguageName
(String languageName) Retrieves a script evaluatorScriptEvaluator
for the given language.
-
Method Details
-
getScriptEvaluatorByLanguageName
Retrieves a script evaluatorScriptEvaluator
for the given language.- Parameters:
languageName
- the name of a scripting language- Returns:
- a script executor for the given language. Never null.
- Throws:
ScriptEvaluatorNotFoundException
- in case noScriptEvaluator
was found for a givenlanguageName
.
-
clear
void clear()Clear the state of the factory.Called when the
ValidatorFactory
is closed.
-