Code example for SimpleBindings

Methods: put

0
        this.script = script;
    } 
 
    @Override 
    public void handleEvent(Event event) throws ClientException {
        Bindings bindings = new SimpleBindings();
        bindings.put("event", event);
        bindings.put("context", event.getContext());
        try { 
            script.run(bindings);
        } catch (Exception e) {
            throw ClientException.wrap(e);
        } 
    } 
 
}