Skip navigation links

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
 java.lang.Object execute(java.util.Map<java.lang.String,java.lang.Object> arguments)
          Executes the script with the given arguments.


Method Detail


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.
arguments - Map of arguments to pass to the script.
A result, if any.
java.lang.Exception - Whatever native exception the script engine produces. (When called from the connector framework, this will subsequently be wrapped in a ConnectorException)

Skip navigation links

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.