Hi ,

The MANIFEST.MF file in \scripting\api\target\classes\META-INF contains the
following lines ,

"Bundle-Description: This bundle provides the internal API to implement
 scripting. As such        it bundles the Java Scripting API provided
 by Apache BSF. "


The Apache BSF manual at http://jakarta.apache.org/bsf/manual.html says ,

" In order to incorporate your own scripting language into BSF, you must
first write a class implementing the BSFEngine interface for the language;
examples are available in the BSF source distribution.

Usually, a scripting language author extends the BSFEngineImpl class, which
implements BSFEngine, and only requires the scripting language author to
implement the eval() method."

There is an eval method in AbstractSlingScriptEngine which is overidden by
an eval method in  "VelocityTemplatesScriptEngine" and other ScriptEngine
classes.

Does this mean Sling uses Apache BSF for scripting language support or a
similar model.
If so is it also an OSGi bundle.

Can i use the Apache BSF manual as a reference to the Sling scripting/api.

regards,
Janandith.

Reply via email to