scripting
Class InterpreterDriverManager

java.lang.Object
  |
  +--scripting.InterpreterDriverManager

public class InterpreterDriverManager
extends java.lang.Object

Class for managing interpreter drivers. This manager is responsible for keeping track of loaded driver. Interpreter drivers are required to register instance of themselves with this manager when they are loaded.


Method Summary
static void executeScript(java.lang.String script, java.lang.String language)
          Execute a script string Execute the string supplied according to the langauge specified
static void executeScriptFile(java.lang.String scriptFile)
          Exceute a script file.
static void main(java.lang.String[] args)
          The main function which exercises the basic functionality.
static void registerDriver(InterpreterDriver driver)
          Register a driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerDriver

public static void registerDriver(InterpreterDriver driver)
Register a driver. Interpreter drivers call this method when they are loaded.
Parameters:
driver - the driver to be registered

executeScript

public static void executeScript(java.lang.String script,
                                 java.lang.String language)
                          throws InterpreterDriver.InterpreterException
Execute a script string Execute the string supplied according to the langauge specified
Parameters:
script - script to be executed
language - language for interpreting the script string

executeScriptFile

public static void executeScriptFile(java.lang.String scriptFile)
                              throws InterpreterDriver.InterpreterException
Exceute a script file. The interpreter driver supporting the language for this file is deduced from file name extension
Parameters:
scriptFile - file name containing script

main

public static void main(java.lang.String[] args)
The main function which exercises the basic functionality. Useful for unit testing.