Class BSFJavaScriptEngine
BSFEngineImpl
org.apache.jmeter.util.BSFJavaScriptEngine
public class BSFJavaScriptEngine
extends BSFEngineImpl
This is the interface to Netscape's Rhino (JavaScript) from the
Bean Scripting Framework.
The original version of this code was first written by Adam Peller for use in LotusXSL. Sanjiva took his code and adapted it for BSF. Modified for JMeter to fix bug BSF-22.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn an object from an extension.voiddeclareBean(BSFDeclaredBean bean) This is used by an application to evaluate a string containing some expression.voidinitialize(BSFManager mgr, String lang, Vector declaredBeans) Initialize the engine.voidundeclareBean(BSFDeclaredBean bean)
-
Constructor Details
-
BSFJavaScriptEngine
public BSFJavaScriptEngine()
-
-
Method Details
-
call
Return an object from an extension.- Parameters:
object- Object on which to make the call (ignored).method- The name of the method to call.args- an array of arguments to be passed to the extension, which may be either Vectors of Nodes, or Strings.- Throws:
BSFException
-
declareBean
public void declareBean(BSFDeclaredBean bean) throws BSFException - Throws:
BSFException
-
eval
-
initialize
-
undeclareBean
public void undeclareBean(BSFDeclaredBean bean) throws BSFException - Throws:
BSFException
-