All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.luyiisme.script.ScriptEngine Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version

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