Hi ,

According to what i observed from scripting modules in Sling there is a
Script Context used in the Script Engine's eval method.

Also according to what i understood from the JSR 223 spec a Script context
provide a view of host application to the Script Engine.

ex: Define Global scope , Engine scope and other aspects of aplication such
as readers & writers.

If I'm right in my case Sling is the host Scripting Engine is the guest
working with the host using Script Context. Is this correct ?

Now Velocity has a VelocityContext according to
VelocityTemplatesScriptEngine .
So I mailed the Scala mailing list to check whether there is a Context
available for Scala but there is no response for it.
So I assume there isn't one and I should be using the default
javax.script.ScriptContext.

I am not clear about the way Sling looks like to a Script Engine when it
works with it.

For example ,

What is in the Global scope of Sling when viewed by Script Engine.
How can It use it.
etc.

Does the Script Context behave like a mediator between Sling and Script
Engine like the following  ?.

ex:   Sling <----------> Script Context <--------------> Script
Engine<---------- Script.

regards,
janandith.

Reply via email to