org.keel.services.script
Interface OutputCapableScript
- All Superinterfaces:
- Script
- All Known Implementing Classes:
- JellyScript
- public interface OutputCapableScript
- extends Script
This is a specialized interface of a scripting service, where the script can generate output into a given Writer (file). If a service that implements this interface looked up from the container using the "Script" role, then it can be cast to this interface, or looked up directly using the "OutputCapableScript" role.
- Version:
- $Revision: 1.2 $ $Date: 2003/07/03 15:49:32 $
- Author:
- Shash Chatterjee Created on Jun 18, 2003
| Field Summary |
static java.lang.String |
ROLE
The Avalon role name for the service |
| Method Summary |
void |
execute(java.lang.String script, java.io.Writer writer)
Execute and put output generated by the script into provided Writer |
ROLE
public static final java.lang.String ROLE
-
The Avalon role name for the service
execute
public void execute(java.lang.String script,
java.io.Writer writer)
throws ScriptException
-
Execute and put output generated by the script into provided Writer
-
-
- Parameters:
script - The file name of the script
writer - Stream to put output into
- Throws:
ScriptException - Errors from the scripting engine
Please see keelframework.org for information about new Keel releases.