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

Add JavaScript support for Spring dynamic languages [SPR-7592] #12248

Closed
spring-projects-issues opened this issue Sep 24, 2010 · 5 comments
Closed
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression)

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Sep 24, 2010

Tomasz Nurkiewicz opened SPR-7592 and commented

Spring currently supports Groovy, JRuby and BeanShell dynamic languages. I would like to suggest adding support for JavaScript. Because Rhino engine is embedded in Java 6 JRE, no additional libraries are needed since that version.

I have already implemented (GitHub) rough version of this feature (including several unit tests) and explained it here.


Affects: 3.0.4

Issue Links:

8 votes, 9 watchers

@spring-projects-issues
Copy link
Collaborator Author

Darren Cruse commented

I think this is a great idea - Server Side Javascript has been getting a lot of attention (e.g. V8 and node.js) and Rhino is really a mature implementation we're lucky to have it on the JVM.

In fact I was a little surprised/disappointed Groovy's Dynamic Language Support didn't already support Javascript - after all if you define "popularity" in terms of numbers of developers who know it, Javascript is in fact more popular than the other dynamic languages already supported.

I did download Tomasz rough version, and it appears that he's made his changes right within/alongside the current spring code base, I assume to make incorporation in the official Spring code base as easy as possible.

So I vote for this and I hope others do as well!! :)

@spring-projects-issues
Copy link
Collaborator Author

Tomasz Nurkiewicz commented

Any updates on this issue? Few people contacted me and asked about this feature.

@spring-projects-issues
Copy link
Collaborator Author

James Cook commented

With the enormous number of REST services spitting out JSON these days and JavaScript built right into the JVM, it seems silly to constantly be marshaling JSON back and forth through Java objects. RingoJS is awesome in that it lets me work with JSON as God intended while running on the JVM thus giving me access to Spring abstractions, but I would like more seamless integration with Spring. How about adding Rhino and Nashorn support to Spring's list of dynamic languages. Better yet, make a huge splash and support CommonJS package loading and NPM libraries in the same runtime.

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Mar 9, 2015

Sébastien Deleuze commented

Since Nashorn Javascript engine use JSR-233 ScriptEngine, Invocable and Compilable types, maybe this issue should be closed in favor of #9888.

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Apr 1, 2015

Juergen Hoeller commented

Superseded by #9888.

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues removed the type: enhancement A general enhancement label Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression)
Projects
None yet
Development

No branches or pull requests

2 participants