Package javax.script

Examples of javax.script.ScriptContext.removeAttribute()


       * Sample 3 : Call a JRuby script to obtain a object (thread
       * subclass defined in JRuby script)
       */

      System.out.println("###SAMPLE 3");
      scriptContext.removeAttribute("param_from_java",
          ScriptContext.ENGINE_SCOPE);
      scriptReader = new FileReader(
          "JRubyScripts/test_param_ruby_java_with_return.rb");
      obj = rubyEngine.eval(scriptReader, scriptContext);
      Thread thread = (Thread) obj;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.