Package org.sf.bee.commons.script

Examples of org.sf.bee.commons.script.IBeeScriptEngine


    }

    private boolean evaluate(final String script,
            final Map<String, Object> scriptContext) {
        if (StringUtils.hasText(script)) {
            final IBeeScriptEngine engine = this.getScriptEngine();
            if (null != engine) {
                try {
                    final Object result = engine.eval(script, scriptContext);
                    return null != result ? Boolean.parseBoolean(result.toString()) : false;
                } catch (Exception ex) {
                    this.getLogger().log(Level.SEVERE, null, ex);
                    return false;
                }
View Full Code Here

TOP

Related Classes of org.sf.bee.commons.script.IBeeScriptEngine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.