Hi Janadith, On Sun, Mar 30, 2008 at 8:24 PM, janandith jayawardena <[EMAIL PROTECTED]> wrote:
> ... Does this mean Sling uses Apache BSF for scripting language support or a > similar model... Yes and no ;-) Sling scripting is based on the JSR 223 javax.script.* interfaces, provided by the BSF 3.0 beta release. So we do use BSF, but not the "old" BSF-specific interfaces. > ... If so is it also an OSGi bundle.... Yes, each scripting engine is provided as an OSGi bundle, but to be usable as a scripting engine the bundle has to include a services/javax.script.ScriptEngineFactory file that gives the name of the ScriptEngineFactory that implements the language. The velocity script engine (in scripting/velocity) is probably the simplest example. > ... Can i use the Apache BSF manual as a reference to the Sling > scripting/api.... Probably not, I haven't checked but I guess that manual describes the "old" BSF API. Better look at the javax.script APIs, for example at http://java.sun.com/javase/6/docs/api/javax/script/package-summary.html - but BSF, being in beta, might not implement all of that. -Bertrand
