public class DefaultScriptEvaluatorFactory extends AbstractCachingScriptEvaluatorFactory
ScriptEngineScriptEvaluator
s. This
class is thread-safe.Constructor and Description |
---|
DefaultScriptEvaluatorFactory(ClassLoader externalClassLoader) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the state of the factory.
|
protected ScriptEvaluator |
createNewScriptEvaluator(String languageName)
Creates a new script evaluator for the given language.
|
getScriptEvaluatorByLanguageName
public DefaultScriptEvaluatorFactory(ClassLoader externalClassLoader)
public void clear()
ScriptEvaluatorFactory
Called when the ValidatorFactory
is closed.
clear
in interface ScriptEvaluatorFactory
clear
in class AbstractCachingScriptEvaluatorFactory
protected ScriptEvaluator createNewScriptEvaluator(String languageName) throws ScriptEvaluationException
AbstractCachingScriptEvaluatorFactory
createNewScriptEvaluator
in class AbstractCachingScriptEvaluatorFactory
languageName
- the name of a scripting languageScriptEvaluationException
Copyright © 2021 JBoss by Red Hat. All rights reserved.