@FunctionalInterface public interface BindingsSupplier
| Modifier and Type | Method and Description |
|---|---|
static BindingsSupplier |
ofMap(Map<String,Object> map)
Returns a
BindingsSupplier that encapsulates a map of objects. |
static BindingsSupplier |
singleBinding(String name,
Object value)
Returns a
BindingsSupplier that encapsulates a single binding. |
void |
supplyBindings(Script script,
BindingsBuilder accumulator)
Supplies this suppliers bindings for the given script.
|
static BindingsSupplier singleBinding(String name, Object value)
BindingsSupplier that encapsulates a single binding.name - the name of the bindingvalue - the corresponding valuestatic BindingsSupplier ofMap(Map<String,Object> map)
BindingsSupplier that encapsulates a map of objects.map - the map of bindingsvoid supplyBindings(Script script, BindingsBuilder accumulator)
script - the script the bindings are foraccumulator - the accumulatorCopyright © 2018. All rights reserved.