Home
Categories
Dictionary
Download
Project Details
Changes Log
FAQ
License

Script


Scripts can be developed in Groovy, Ruby, Python, or Javascript which impement an interface.

For example, for this interface:
   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);

See also


Categories: api

Copyright 2019-2020 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence