Added by Hendy Irawan, last edited by Hendy Irawan on Jun 27, 2008
(view change)
pax-script, pax, script, osgi, jsr223, scripting, groovy, jruby, beanshell, javascript, rhino
|
|
Pax Script is an extender that automatically registers JSR223 engines (javax.script.ScriptEngineFactory) as OSGi services when a JSR223 JAR is loaded.
SCM: http://scm.ops4j.org/browse/OPS4J/laboratory/users/ceefour/pax-script
Also "jointly developed" with JSR223: https://scripting.dev.java.net/issues/show_bug.cgi?id=34
An effort is undergoing to make all JSR223 engines OSGi-compliant. Right now Groovy engine is directly usable by Pax-Script.
Requirements
- OSGi R4.1 runtime
- Java 5 or Java 4 with javax.scripting package
- A scripting implementation (e.g. groovy)
- A JSR223 scripting engine for that scripting implementation (from https://scripting.dev.java.net/ )
- Pax-Script dependencies (Pax Swissbox - Extender, OPS4J Base-Lang)
Example Usage
Run OSGi runtime and install the bundles mentioned in Requirements
Inspect the bundles, particularly the JSR223 engine bundle.
Pax-Script Extender has registered OSGi services for that bundle.
JSR223 Scripting is now very easy to use under OSGi!
|
|