Examples of evalScriptlet()


Examples of org.jruby.Ruby.evalScriptlet()

                else { // TODO this is @deprecated and will be removed ...
                    // NOTE JRuby 1.7.x does not like instance vars for Java :
                    // warning: instance vars on non-persistent Java type
                    // Java::OrgJrubyRackServlet::ServletRackEnvironment
                    // (http://wiki.jruby.org/Persistence)
                    runtime.evalScriptlet("require 'jruby/rack/environment'");
                    adapter.setInstanceVariable(servlet_env, "@_io", io);
                }
                IRubyObject response = adapter.callMethod(getApplication(), "call", servlet_env);
                return (RackResponse) JavaEmbedUtils.rubyToJava(runtime, response, RackResponse.class);
            }
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.