spring-framework / org.springframework.scripting.support / StandardScriptEvaluator / setLanguage

setLanguage

open fun setLanguage(language: String): Unit

Set the name of the language meant for evaluating the scripts (e.g. "Groovy").

This is effectively an alias for "engineName", potentially (but not yet) providing common abbreviations for certain languages beyond what the JSR-223 script engine factory exposes.

See Also
#setEngineName