Package org.apache.jmeter.util
Class BeanShellInterpreter
java.lang.Object
org.apache.jmeter.util.BeanShellInterpreter
BeanShell setup function - encapsulates all the access to the BeanShell
Interpreter in a single class.
The class uses dynamic class loading to access BeanShell, which means that
all the source files can be built without needing access to the bsh jar.
If the beanshell jar is not present at run-time, an error will be logged
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
BeanShellInterpreter
- Throws:
ClassNotFoundException
-
BeanShellInterpreter
- Parameters:
init
- initialisation filelog
- logger to pass to interpreter- Throws:
ClassNotFoundException
- when beanshell can not be instantiated
-
-
Method Details
-
reset
Resets the BeanShell interpreter.- Throws:
ClassNotFoundException
- if interpreter cannot be instantiated
-
eval
- Throws:
JMeterException
-
evalNoLog
- Throws:
JMeterException
-
set
- Throws:
JMeterException
-
set
- Throws:
JMeterException
-
source
- Throws:
JMeterException
-
get
- Throws:
JMeterException
-
isInterpreterPresent
public static boolean isInterpreterPresent()
-