Code example for SimpleBindings

0
			} 
		} 
	} 
 
	private Object doEvaluate(String script, Map<String, Object> bindings) throws ScriptException {
		return engine.eval( script, new SimpleBindings( bindings ) );
	} 
 
	/** 
	 * Checks, whether the given engine is thread-safe or not. 
	 * 
	 * @return True, if the given engine is thread-safe, false otherwise. 
	 */ 
	private boolean engineAllowsParallelAccessFromMultipleThreads() { 
		String threadingType = (String) engine.getFactory().getParameter( "THREADING" );
 
		return "THREAD-ISOLATED".equals( threadingType ) || "STATELESS".equals( threadingType );
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java