Package org.wicketstuff.console.engine

Examples of org.wicketstuff.console.engine.IScriptExecutionResult


  {

    final IScriptEngine engine = newEngine();
    final Map<String, Object> bindings = newBindings();

    final IScriptExecutionResult result = engine.execute(input, bindings);

    if (result.isSuccess())
    {
      returnValue = String.valueOf(result.getReturnValue());
      output = result.getOutput();
      success = true;
    }
    else
    {
      returnValue = null;
      output = String.format("%s\n\n%s", result.getOutput(), result.getException());
      success = false;
    }

    target.add(returnValueTf, outputTa);
  }
View Full Code Here

TOP

Related Classes of org.wicketstuff.console.engine.IScriptExecutionResult

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.