Package org.openiam.script
Interface ScriptIntegration
-
- All Known Implementing Classes:
AbstractGroovyScriptEngineIntegration,GroovyScriptEngineIntegration
public interface ScriptIntegrationInterface that all script integration modules must implement- Author:
- suneet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Classcompile(String script)Stringevaluate(Map<String,Object> bindingMap, String gstring)Objectexecute(Map<String,Object> bindingMap, String scriptName)Execute groovy script.ObjectinstantiateClass(Map<String,Object> bindingMap, String scriptName)ObjectinstantiateClass(Map<String,Object> bindingMap, String storageDirectory, String scriptName)booleanscriptExists(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:
CheckGroovyExceptionorg.codehaus.groovy.control.MultipleCompilationErrorsException
-
-