| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <document> |
| |
| <properties> |
| <title>Fulcrum Script Service</title> |
| <author email="siegfried.goeschl@it20one.at">Siegfried Goeschl</author> |
| </properties> |
| |
| <body> |
| |
| <section name="What is the Fulcrum Script Service?"> |
| |
| <p> |
| The Fulcrum Script Service provides an integration of the |
| JSR 223 specifiation to integrate scripting languages. |
| Basically this is the successor of the existing Fulcrum BSF |
| and Fulcrum Groovy service. |
| </p> |
| |
| <p> |
| When you are using JDK 1.5 then you need Bean Scripting |
| Framework (bsf-api-3.0-beta2.jar). If you are using |
| JDK 1.6 then the library will do no harm and you use |
| the JDK 1.6 built-in implementation of JSR-223. |
| </p> |
| |
| <subsection name="Features"> |
| <p> |
| The Fulcrum Script Service provides the following features: |
| <ul> |
| <li>optional caching of scripts to improve performance</li> |
| <li>optional script compilation depending on the scripting engine</li> |
| <li>seamless integration with the existing Avalon infrastructure</li> |
| </ul> |
| </p> |
| </subsection> |
| |
| <subsection name="Scripting Language Support"> |
| Following are the tested frameworks |
| <table> |
| <tr> |
| <th>Language</th> |
| <th>Status</th> |
| <th>Description</th> |
| </tr> |
| <tr> |
| <td><a href="http://www.mozilla.org/rhino">Rhino JavaScript</a></td> |
| <td>Done</td> |
| <td>Works nicely. Since Java 8 ""Nashorn"</td> |
| </tr> |
| <tr> |
| <td><a href="http://groovy.codehaus.org">Groovy</a></td> |
| <td>Done</td> |
| <td>Not sure if Groovy support Invocable</td> |
| </tr> |
| </table> |
| </subsection> |
| |
| </section> |
| |
| </body> |
| |
| </document> |