public class GroovyScriptExecutorFactory extends ScriptExecutorFactory
ScriptExecutor
.Constructor and Description |
---|
GroovyScriptExecutorFactory()
Make sure we blow up if Groovy does not exist.
|
Modifier and Type | Method and Description |
---|---|
String |
getLanguageName()
Returns the name of the language supported by this factory.
|
ScriptExecutor |
newScriptExecutor(ClassLoader loader,
String script,
boolean compile)
Creates a script executor for the given script.
|
getSupportedLanguages, newInstance
public GroovyScriptExecutorFactory()
public ScriptExecutor newScriptExecutor(ClassLoader loader, String script, boolean compile)
Always compile the script.
newScriptExecutor
in class ScriptExecutorFactory
loader
- The classloader that contains the java classes that the script should have access to.script
- The script text.compile
- A hint to tell the script executor whether or not to compile the given script.
This need not be implemented by all script executors. If true, the caller is saying that they intend to
call the script multiple times with different arguments, so compile if possible.public String getLanguageName()
getLanguageName
in class ScriptExecutorFactory
Copyright © 2022. All rights reserved.