https://kotlinlang.org logo
#scripting
Title
# scripting
t

tradunsky

02/20/2018, 8:24 PM
Hi everyone, A quick question: is it possible to make my own engine based on KotlinJsr223JvmScriptEngineBase to use given classloader for its results?
i

ilya.chernikov

02/21/2018, 7:50 AM
Sure! Just take
KotlinJsr223JvmLocalScriptEngine
as a base, and supply your classloader to the
GenericReplCompilingEvaluator
constructor. But please be aware that this is all mostly internal APIs and therefore could be changed in the future.
2 Views