BeanShell javax.script (JSR-223) adapter impl...
Patrick Niemeyer <[email protected]> Sun, 12 Jun 2005 13:24:53 -0500
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
If anyone is interested in playing with the javax.script API I've put up a snapshot for you here: http://beanshell.org/bsh-2.0b5.zip http://beanshell.org/bsh-2.0b5-src.zip This snapshot is compiled under Java 5.0, but that will be corrected later (javax.script uses generics in its API). The test file is BeanShell/engine/src/TestBshScriptEngine.java and it should tell you that everything passes. You'll need the javax.script API from sun (may be in the latest mustang build) and I've included it in the source zip file: javaxscript.jar. There is work to be done here... This implementation supports the full, pluggable ScriptContext (pluggable namespaces as Maps, essentially). However there is room for us to optimize the default script context for BeanShell to perhaps make it more efficient in the common case. Oh, and just to avoid any confusion, this is an implementation of the JSR-223 javax.script API for BeanShell. This is a BSF-like API for interacting with scripting languages from Java. This has nothing to do with the upcoming JSR-274 effort to standardize BeanShell itself. And you will of course continue to be able to use the regular BeanShell API without this indirection. thanks, Pat ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20