Package org.openiam.script
Interface ScriptIntegration
-
- All Known Implementing Classes:
AbstractGroovyScriptEngineIntegration
,GroovyScriptEngineIntegration
public interface ScriptIntegration
Interface that all script integration modules must implement- Author:
- suneet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class
compile(String script)
String
evaluate(Map<String,Object> bindingMap, String gstring)
Object
execute(Map<String,Object> bindingMap, String scriptName)
Execute groovy script.Object
instantiateClass(Map<String,Object> bindingMap, String scriptName)
Object
instantiateClass(Map<String,Object> bindingMap, String storageDirectory, String scriptName)
boolean
scriptExists(String scriptName)
-
-
-
Method Detail
-
evaluate
String evaluate(Map<String,Object> bindingMap, String gstring) throws IOException
- Throws:
IOException
-
execute
Object execute(Map<String,Object> bindingMap, String scriptName) throws ScriptEngineException
Execute groovy script.- Parameters:
bindingMap
- map of input datascriptName
- groovy script name to load- Returns:
- any data, need for custom parsing
- Throws:
ScriptEngineException
-
instantiateClass
Object instantiateClass(Map<String,Object> bindingMap, String scriptName) throws IOException
- Throws:
IOException
-
instantiateClass
Object instantiateClass(Map<String,Object> bindingMap, String storageDirectory, String scriptName) throws IOException
- Throws:
IOException
-
scriptExists
boolean scriptExists(String scriptName)
-
compile
Class compile(String script) throws CheckGroovyException, org.codehaus.groovy.control.MultipleCompilationErrorsException
- Throws:
CheckGroovyException
org.codehaus.groovy.control.MultipleCompilationErrorsException
-
-