Hey! i'm currently working on a server, where i need to be able to configure rather complicated actions. I've currently built a proof of concept DSL for that, and it's great. But i need to be able to reconfigure it without having to restart / recompile my server, so just putting the DSL into the server is no option. I thought about using Kotlin-script for that purpose. I'd need to somehow expose my DSL api to kotlin-script, evaluate that script from my Kotlin-server and get the configuration back.
is this currently possible, or say practical with Kotlinscript? there are two questions:
- how can i get my type-safe DSL API into kotlinscript?
- how could i get the generated objects back from the script?
any help would be appreciated ;D