Interface ScriptExecutor
-
public interface ScriptExecutor
Represents a (possibly compiled) script. It can be invoked many times with many arguments: TODO: Specify thread safety. Can this be called from multiple threads or not? Need empirical data from a few scripting engines to determine which is most appropriate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
execute(java.util.Map<java.lang.String,java.lang.Object> arguments)
Executes the script with the given arguments.
-
-
-
Method Detail
-
execute
java.lang.Object execute(java.util.Map<java.lang.String,java.lang.Object> arguments) throws java.lang.Exception
Executes the script with the given arguments.- Parameters:
arguments
- Map of arguments to pass to the script.- Returns:
- A result, if any.
- Throws:
java.lang.Exception
- Whatever native exception the script engine produces. (When called from the connector framework, this will subsequently be wrapped in a ConnectorException)
-
-