public class ScriptConfig
extends java.lang.Object
Constructor and Description |
---|
ScriptConfig()
Create a ScriptConfig with the default properties that runs a Beanshell script.
|
ScriptConfig(java.util.Map<java.lang.String,?> properties)
Create a ScriptConfig with the default and some additional properties that runs a Beanshell script.
|
ScriptConfig(java.util.Map<java.lang.String,?> properties,
boolean defaultProperties)
Create a ScriptConfig with some additional properties that runs a Beanshell script.
|
Modifier and Type | Method and Description |
---|---|
void |
addUserProperties(java.util.Map<java.lang.String,?> map)
Add additional properties.
|
void |
setDefaultProperties(boolean defaultProperties)
Turn the default properties on or off.
|
void |
setScriptExtension(java.lang.String ext)
Set the file extension to use when determining which script language to execute.
|
public ScriptConfig()
public ScriptConfig(java.util.Map<java.lang.String,?> properties)
properties
- Custom Objects to inject into the script. The keys denote the names of the variables in the script.
The values denote the actual values injected.public ScriptConfig(java.util.Map<java.lang.String,?> properties, boolean defaultProperties)
properties
- Custom Objects to inject into the script. The keys denote the names of the variables in the script.
The values denote the actual values injected.defaultProperties
- inject the standard properties into the script. Turning this off is faster but does not allow access
to the Q environment.public void setDefaultProperties(boolean defaultProperties)
defaultProperties
- inject the standard properties into the script. Turning this off is faster but does not allow access
to the Q environment.public void setScriptExtension(java.lang.String ext)
ext
- Extension to use.public void addUserProperties(java.util.Map<java.lang.String,?> map)
map
- Custom Objects to inject into the script. The keys denote the names of the variables in the script.
The values denote the actual values injected.