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.
execute
Object execute(Map<String,Object> arguments)
throws Exception
- Executes the script with the given arguments.
- Parameters:
arguments
- Map of arguments to pass to the script.
- Returns:
- A result, if any.
- Throws:
Exception
- Whatever native exception the script engine
produces. (When called from the connector framework, this will
subsequently be wrapped in a ConnectorException)
Copyright © 2012. All Rights Reserved.