/** * Bindings to apply to every script evaluated. Note that the entries of the supplied {@code Bindings} object * will be copied into a newly created {@link org.apache.tinkerpop.gremlin.jsr223.ConcurrentBindings} object * at the call of this method. */ public Builder globalBindings(final Bindings bindings) { this.globalBindings = new org.apache.tinkerpop.gremlin.jsr223.ConcurrentBindings(bindings); return this; }
public ConcurrentBindings(final Map<String, Object> m) { // initialize the bindings first with a ConcurrentHashMap and then copy in the bindings this(); this.putAll(m); } }
public GremlinGroovyScriptEngine(final Customizer... customizers) { setBindings(new ConcurrentBindings(), ScriptContext.GLOBAL_SCOPE);
public ConcurrentBindings(final Map<String, Object> m) { // initialize the bindings first with a ConcurrentHashMap and then copy in the bindings this(); this.putAll(m); } }
/** * Bindings to apply to every script evaluated. Note that the entries of the supplied {@code Bindings} object * will be copied into a newly created {@link org.apache.tinkerpop.gremlin.jsr223.ConcurrentBindings} object * at the call of this method. */ public Builder globalBindings(final Bindings bindings) { this.globalBindings = new org.apache.tinkerpop.gremlin.jsr223.ConcurrentBindings(bindings); return this; }
public GremlinGroovyScriptEngine(final Customizer... customizers) { setBindings(new ConcurrentBindings(), ScriptContext.GLOBAL_SCOPE);