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

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

package io.github.luyiisme.script;

/**
 * @author luyi on 16/4/19.
 */
public abstract class AbstractScriptEngine {

    /**
     * 根据脚本加工为脚本实例
     *
     * @param scriptText
     * @return
     */
    protected abstract T generateScriptInstance(String scriptName, String scriptText);

    /***
     * 根据脚本Id 获取脚本实例
     *
     * @param scriptId 脚本唯一标识
     * @return
     */
    protected abstract T getScriptInstance(String scriptId);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy