blob: 5bdfa5274a40f943f930b914f0049d74bff01ccd [file]
//
// Tapestry Web Application Framework
// Copyright (c) 2000-2002 by Howard Lewis Ship
//
// Howard Lewis Ship
// http://sf.net/projects/tapestry
// mailto:hship@users.sf.net
//
// This library is free software.
//
// You may redistribute it and/or modify it under the terms of the GNU
// Lesser General Public License as published by the Free Software Foundation.
//
// Version 2.1 of the license should be included with this distribution in
// the file LICENSE, as well as License.html. If the license is not
// included with this distribution, you may find a copy at the FSF web
// site at 'www.gnu.org' or 'www.fsf.org', or you may write to the
// Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139 USA.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied waranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
package net.sf.tapestry;
import java.util.Map;
/**
* An object that can convert a set of symbols into a collection of JavaScript statements.
*
* <p>IScript implementation must be threadsafe.
*
* @author Howard Lewis Ship
* @version $Id$
* @since 1.0.2
*
**/
public interface IScript
{
/**
* Returns a string representing where the script was loaded from.
*
**/
public String getScriptPath();
/**
* Executes the script, which will read and modify the symbols {@link Map}, and return
* a {@link ScriptSession} that can be used to obtain results.
*
**/
public ScriptSession execute(Map symbols) throws ScriptException;
}