io.github.luyiisme.script.ScriptEngine Maven / Gradle / Ivy
package io.github.luyiisme.script;
import java.util.Map;
import org.codehaus.groovy.control.CompilerConfiguration;
import org.kohsuke.groovy.sandbox.GroovyInterceptor;
/**
* @author luyi on 16/4/19.
*/
public interface ScriptEngine {
/**
* 执行入口
*
* @param scriptName 脚本Id,
* @param scriptParams 脚本执行的参数[参数名--参数实例]
* @param 可以为null
* @return
*/
T invoke(String scriptName, Map scriptParams);
void setCompilerConfiguration(CompilerConfiguration cc);
void addGroovyInterceptor(GroovyInterceptor groovyInterceptor);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy