Skip to content

ScriptExecutor for JSR-223 [SPR-11007] #15635

Closed
@spring-projects-issues

Description

@spring-projects-issues

Mark Pollack opened SPR-11007 and commented

Several projects, SI, Security and Spring Hadoop have code that evaluates a groovy script. The Spring Hadoop project has

https://github.com/spring-projects/spring-hadoop/blob/master/spring-hadoop-core/src/main/java/org/springframework/data/hadoop/scripting/Jsr223ScriptEvaluator.java

and SI has

https://github.com/spring-projects/spring-integration/blob/master/spring-integration-groovy/src/main/java/org/springframework/integration/groovy/GroovyScriptExecutingMessageProcessor.java

In the SI case it doesn't use JSR233 infrastructure to invoke the script, but Groovy support classes. Artem mentioned that using the groovy support classes might result is a faster overall script execution time, so that should be investigated.

The running suggestion is to incorporate the JSR223ScrfiptEvaluator functionality as it provides support for a wider range of scripting languages out of the box.


Issue Links:

Referenced from: commits dfb29f4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions