Skip to end of metadata
Go to start of metadata

GumTree uses JSR 223 (available in Java 6) as the facade API to provide scripting support.  Since GumTree runs on top of the OSGi runtime, special treatment is required to ensure all scripting engines are visible during runtime (via extension point and global classloader visibility).

To use the scripting support, you need to create an instance of the script engine.  The following code creates an engine in its current thread:

Some script engines place a restriction on thread.  For example, Jepp only allows caller thread to be the same as its creator thread (in order to avoid multithreading issue when calling JNI).  GumTree supports creation and execution of the script engine in new thread by using the script executor:

  • No labels