Categories
Dictionary
Download
Project Details
Changes Log
FAQ
License


scriptHelper is a Java library allowing a simple integration between Java code and various script languages. The use case for this API is when you want to add additional functions though user scripts to an existing Java library: You can use the script like you would do regular Java code.

The library is distributed with several implementations: Note that the library allows to debug scripts[1]
Note that for the moment, only Groovy scripts can be used in the debugger.
. See the Debugger tutorial for a tutorial on how to use the debugger.

Distribution

See distribution for how the API is packaged.

Dependencies

See dependencies.

Development

See development.

Usage

Main Article: Basic usage

The API will consider a script as a class implementing a Java interface. You will then be able to use the script as you would use the interface in Java code. You can also see the Basic tutorial which explains how to load a Groovy script and use it from Java.



There are three was to use the API:
  • Basic usage: the basic usage of the API, allowing to use the script as you would use the interface in Java code
  • Method invocation: allows to use the API by invoking any methods on the script directly
  • Method wrapper: allows to use the API by wrapping independantly

Comparison with the Java ScriptFactory framework


Tutorial

See tutorials for a list of tutorials on how to use this API.

FAQ Troubleshooting

See the FAQ and Troubleshooting articles.

Notes

  1. ^ Note that for the moment, only Groovy scripts can be used in the debugger.

Categories: general

Developers

Join this project:

To join this project, please contact the project administrators of this project, as shown on the project summary page.

Get the source code:

Source code for this project is available as downloads or through the git repository used by the project, as accessible from the project develop page.

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