org.apache.tapestry
Interface IScript

All Known Implementing Classes:
ParsedScript

public interface IScript

An object that can convert a set of symbols into a collection of JavaScript statements.

IScript implementation must be threadsafe.

Since:
1.0.2
Version:
$Id: IScript.java,v 1.5 2004/01/19 21:32:10 hlship Exp $
Author:
Howard Lewis Ship

Method Summary
 void execute(IRequestCycle cycle, IScriptProcessor processor, Map symbols)
          Executes the script, which will read and modify the symbols Map.
 IResourceLocation getScriptLocation()
          Returns the location from which the script was loaded.
 

Method Detail

getScriptLocation

public IResourceLocation getScriptLocation()
Returns the location from which the script was loaded.


execute

public void execute(IRequestCycle cycle,
                    IScriptProcessor processor,
                    Map symbols)
Executes the script, which will read and modify the symbols Map. The script works with the IScriptProcessor to get the generated JavaScript included on the page.

Parameters:
cycle - the current request cycle
processor - an object that processes the results of the script, typically an instance of Body
symbols - Map of input symbols; execution of the script may modify the map, creating new output symbols
See Also:
Body.get(IRequestCycle)