Rodrigo Graciano
02/23/2021, 11:54 PMNikky
02/24/2021, 7:42 AMRodrigo Graciano
02/24/2021, 4:04 PMilya.chernikov
02/26/2021, 12:40 PMBasicJvmScriptingHost
host (which is used in most examples) without additional configuration , then the script is executed in the same process on a classloader that has your application classloader in the parents.
To make classes from your app available for script directly, you need to provide dependencies via script configuration.
If you, on the other hand, aiming at isolation, you can start by isolating the classloaders - this is a simple configuration option. Or you can compile script to a classes or jar and execute it as you like. Or you can write your own evaluator with the level of isolation you like.