Home
Categories
Dictionnary
Download
Project Details
Changes Log
FAQ
License

ScriptWrapper


This article is about the org.scripthelper.model.ScriptWrapper interface. Note that this article will only be useful if you intend to create you own ScriptFactory.

The 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: This notion is at the basis of the scriptHelper library.

Example

The code you must implement is very simple. For example, for the following interface in Groovy:
      public 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.

See also


Categories: scripts

Copyright 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence