Groovy integrates cleanly with
into your Java code while keeping your Java code decoupled from any particular
scripting engine specifics.
The BSF engine for Groovy is implementated by the
From bsf 2.3.0-rc2 onwards the integration should be included in the release of BSF
although until then you'll need to manually register this class with your BSF installation.
You can manually register Groovy into BSF via the following...
You can then treat Groovy like any of the other scripting languages via the BSF API...
If you want to see more examples of using Groovy with BSF you could try the