Wednesday, June 13, 2007

Beanshell Scripting Engine

I need a robust scripting engine for my project. The scripting engine must fulfill this criteria:

  1. The script is based on Java 1.4/1.5.
  2. The script is asily embedded in an application and easily pass parameter to and from the application.
  3. The script must be able to create Swing UI and most importantly, the Swing UI can be closed without affecting the script container.
  4. The scripting engine must be small (less than 400 KB)
I evaluated a few: Groovy, JudoScript, Sleep, Rhino, and Beanshell. So far, only Beanshell can fulfill the above criteria.

I will write a Beanshell tutorial in the next post. Stay tuned.

No comments: