Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScriptFactory for JSR-223 [SPR-5215] #9888

Closed
spring-issuemaster opened this issue Oct 14, 2008 · 2 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Oct 14, 2008

Papick G. Taboada opened SPR-5215 and commented

Spring provides some dynamic language support:

http://static.springframework.org/spring/docs/2.5.x/reference/dynamic-language.html

The JSR 223 provides scripting for the Java platform:

http://www.jcp.org/en/jsr/detail?id=223

Wouldn't it be interesting to provide dynamic language support through that API,
so we could plug in our favorite dynamic language?


Affects: 2.5.5

Issue Links:

  • #16906 Add support for dynamic languages refreshable beans in @Configuration classes
  • #15635 ScriptExecutor for JSR-223
  • #17873 Deprecate native JRuby support
  • #19154 Allow specifying CompilationCustomizer for Groovy based beans
  • #6626 Add JavaScriptFactory ("supersedes")
  • #12248 Add JavaScript support for Spring dynamic languages ("supersedes")

Referenced from: commits 1722fa6

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Oct 15, 2008

Juergen Hoeller commented

We've considered this for Spring 2.5 already but it turned out to be non-trivial, unfortunately. We'll revisit this for Spring 3.0.

Juergen

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented May 8, 2015

Juergen Hoeller commented

Got a JSR-223 based StandardScriptFactory working with Groovy, JRuby and Nashorn on JDK 8 in the meantime, including a <lang:std> configuration element. To be committed soon.

Note that there are limitations for JSR-223 with Groovy and JRuby that still make our native support for those worthwhile. However, for JavaScript, the JSR-223 based approach is the only way to go.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.