Add a ScriptEngine factory to ScriptTemplateConfigurer #23258
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
I'm using a the Graal.js engine with ScriptTemplateConfigurer with setSharedEngine(false) to enable thread safety.
Graal.js needs to be configured in order to enable Java interop, for example like this:
The problem is that it's not possible to create an engine instance, configure it and assign it to the ScriptTemplateConfigurer if setSharedEngine is false. In that case you can only set the engine name.
Would it be possible to add a ScriptEngine factory method to ScriptTemplateConfigurer so that it's possible to configure the thread local engine instances?
The text was updated successfully, but these errors were encountered: