org.scripthelper.model.ScriptWrapper
interface. Note that this article will only be useful if you intend to create you own ScriptFactory.org.scripthelper.model.ScriptWrapper
is a wrapper around a script seen as implementing an interface. A ScriptWrapper must be a subclass of the ScriptWrapper of the scripting language you want to use: org.scripthelper.groovy.GroovyScriptWrapper
for Groovy scriptsorg.scripthelper.ruby.RubyScriptWrapper
for Ruby scriptsorg.scripthelper.js.JSScriptWrapper
for Javascript scriptsorg.scripthelper.python.PythonScriptWrapper
for Python scriptspublic interface Script { public int computeResult(int value) { } }The Groovy wrapper:
public class MyGroovyScriptWrapper extends GroovyScriptWrapper<Script> { }with
Script
being the interface you want to implement in the scripting language. Copyright 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence