public class ScriptBindings extends Object implements Bindings
A Bindings
implementation which wraps an existing binding and enhances the key / value map with
read-only access to:
VariableScope
,Resolvers
.Note on backwards compatibility: before 7.1 the Script
bindings behaved in a way that all script variables were automatically exposed
as process variables. You can enable this behavior by setting autoStoreScriptVariables
.
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoStoreScriptVariables
if true, all script variables will be set in the variable scope.
|
protected List<Resolver> |
scriptResolvers |
protected static Set<String> |
UNSTORED_KEYS
The script engine implementations put some key/value pairs into the binding.
|
protected VariableScope |
variableScope |
protected Bindings |
wrappedBindings |
Constructor and Description |
---|
ScriptBindings(List<Resolver> scriptResolvers,
VariableScope variableScope,
Bindings wrappedBindings) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
calculateBindingMap() |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
protected boolean |
isAutoStoreScriptVariablesEnabled() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String name,
Object value) |
void |
putAll(Map<? extends String,? extends Object> toMerge) |
Object |
remove(Object key) |
int |
size() |
Collection<Object> |
values() |
protected static final Set<String> UNSTORED_KEYS
protected VariableScope variableScope
protected Bindings wrappedBindings
protected boolean autoStoreScriptVariables
public ScriptBindings(List<Resolver> scriptResolvers, VariableScope variableScope, Bindings wrappedBindings)
protected boolean isAutoStoreScriptVariablesEnabled()
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
containsKey
in interface Bindings
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
Copyright © 2015. All rights reserved.