Skip navigation links
org.identityconnectors.common.script
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. |
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)
Skip navigation links
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.