| java.lang.Object jwebtk.scripting.ScriptingManager
ScriptingManager | public class ScriptingManager (Code) | | This class wraps the Apache Bean Scripting Framework (BSF).
The BSF jar file(s) and the scripting jar file(s) for a given language are required when using this class.
|
ScriptingManager | protected ScriptingManager()(Code) | | |
executeScript | public static Object executeScript(String script, Hashtable objectsToDeclare) throws ScriptingException(Code) | | Executes a JavaScript script with the given implicit objects.
Parameters: script - the script to execute Parameters: objectsToDeclare - implicit objects to declare the script result |
executeScript | public static Object executeScript(String language, String script, Hashtable objectsToDeclare) throws ScriptingException(Code) | | Executes a JavaScript script with the given implicit objects.
Parameters: language - the language of the script Parameters: script - the script to execute Parameters: objectsToDeclare - implicit objects to declare the script result |
executeScript | public static Object executeScript(String language, String classpath, String engineClass, String script, Hashtable objectsToDeclare) throws ScriptingException(Code) | | Executes a JavaScript script with the given implicit objects.
Parameters: language - the language of the script Parameters: classpath - the classpath for the scripting language (jar/class) environment Parameters: engineClass - the class for the scripting language Parameters: script - the script to execute Parameters: objectsToDeclare - implicit objects to declare the script result |
getLanguage | public static String getLanguage(String extension) throws ScriptingException(Code) | | Returns the scripting language name associated with extension.
Parameters: extension - file extension for a given scripting language the scripting language name associated with extension. |
|
|