public interface Script { public int computeResult(int value); }And the Groovy wrapper:
ScriptWrapper<Script> wrapper = new GroovyScriptWrapper<Script>() { }; Script Script = wrapper.getScript();The you can install a Groovy script as for example:
File file = new File(<our script file>); wrapper.installScript(file); int value = script.computeResult(10);
Copyright 2019-2020 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence